Developer forum

Forum » Development » Set up Dynamic Web on localhost

Set up Dynamic Web on localhost


Reply

Hi to all,


I downloaded all files that I needed from the Download space, I'm using SQL instead Access and I did this:


1. - created a folder and added Application, CustomModulesCsharp and Files folder

2. - created a new database in SQL 2005 Express Edition and restore the DefaultEmptyData.bak into it

3. - add a login user under Security > Logins and add a User Mapping to the restored database with db_datawriteer and db_datareader access (as well public, but I think we don+t need this)

4. - open the AccessUsers table and change the MD5 password of the admin user into a plain one

5. - set the AccessUserType to 0 on that user

6. - created a new website on IIS (using XP Pro IIS Admin tool)

7. - open the IIS console and add to virtual folders, Admin and Files

8. - Set read and write permitions on ASP.NET and IUSR_[MACHINE NAME] users

9. - change the GlobalSettings.aspx file under the Files folder to use the created SQL database

10. - restart IIS with iisreset command line

11. - open http://localhost/Admin and logged in with admin / password

12. - set up the Dynamic web type under control panel [I chose Portal]

13. - enable the modules that I need

14. - Open the CustomModulesCsharp solution and create my module following the Lars video tutorial on his blog

15. - register the new module


now ...


every time I choose ADD PAGE I get ASP.NET error on the right frame
every time I choose Language/Area I get ASP.NET error on the right frame


what am I doing wrong?
 

---


error on ADD PAGE:

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30451: Name 'PageTopLogoImageAlt' is not declared.

Source File: C:\...\Application\Admin\Page_Edit.aspx    Line: 471

image: http://img122.imageshack.us/img122/9159/dwerror01om7.gif

 

---

error on LANGUAGE AREA MODULE:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: AreaDomainLock

Source File: C:\...\Application\Admin\Area_List.aspx    Line: 71

image: http://img111.imageshack.us/img111/8430/dwerror02cy1.gif

 


There are more errors... so, I'm guessing that the standard files are not working properly...


:-(


any help will be highly appreciated!


Replies

 
Reply

It appears as there's a mismatch between the system files and the database version. Please try the following:

 

 - Open /Files/update.xml in notepad and set it to a lesser number, e.g. 200

 - Save the file

 

Do the same for /Files/UpdateVersion_ecom.xml, but set the number to 40

 

 - Now open web.config, and in the second line that says <!-- Change to restart application 12345 -->, change something within the commented text and save the file

 - Now when you run the site in your browser, the database should be updated with all changes made since CMS version 200 and Ecom version 40, and the problem should no longer appear.

 
Reply

Hi Lars,

 

I did exactly what you said, but nothing changed (both errors)

 

I still have the same error when creating a new page:

 

http://img122.imageshack.us/img122/9159/dwerror01om7.gif

 

and the one that shows when I click the Language module under Modules

http://img111.imageshack.us/img111/8430/dwerror02cy1.gif

 

 

I will use the soluction that you left here since our curse day, but it's a bit annoying that the files from the Download part are not working :-(

 

 

By the way, the files changed to 245 and 51 after I went to the admin page, if you want to know.

 
Nicolai Høeg Pedersen
Reply
bra@communikanten.dk wrote:

Hi Lars,

 

I did exactly what you said, but nothing changed (both errors)

 

I still have the same error when creating a new page:

 

http://img122.imageshack.us/img122/9159/dwerror01om7.gif

 

and the one that shows when I click the Language module under Modules

http://img111.imageshack.us/img111/8430/dwerror02cy1.gif

 

 

I will use the soluction that you left here since our curse day, but it's a bit annoying that the files from the Download part are not working :-(

 

 

By the way, the files changed to 245 and 51 after I went to the admin page, if you want to know.


 

Try take a look at /Files/Updatelog.html. It could be missing DDL rights on the SQL-Server user - then Dynamicweb will be unable to update the table.

 

But this error is because of Dynamicweb.dll, Dynamicweb.Admin.dll and database version mismatch.

 

Make sure that /Admin and /Bin on the solution comes from the same version.

 
Reply

 

Try take a look at /Files/Updatelog.html. It could be missing DDL rights on the SQL-Server user - then Dynamicweb will be unable to update the table.

 

But this error is because of Dynamicweb.dll, Dynamicweb.Admin.dll and database version mismatch.

 

Make sure that /Admin and /Bin on the solution comes from the same version.



I'm using the Files folder that is under the DefaultEmptyData.zip file that you have for download in http://developer.dynamicweb.dk/Software-17203.aspx

 

so, if there is a missing DLL it is missing from that file and not my "version" because I, as I told before, did everything from that link where we can download everything to run DW (if I use the files that you have, it should never happend the errors that you are sujecting right?)

 

that applies for your "Make sure that /Admin and /Bin on the solution..." phrase.

 

--

the updatelog.html  (I removed all the log lines from previous dates)

 

http://balexandre.com/temp/updatelog.html

 
Nicolai Høeg Pedersen
Reply

In the update log you see lines like this:

 CREATE TABLE permission denied in database 'Vesterkopi'.
 

Which is missing permissions of the SQL-Server user. It needs DDL admin rights (something like db_ddladmin in permission setup in SQL-Server)

 
Reply
np wrote:

In the update log you see lines like this:

 CREATE TABLE permission denied in database 'Vesterkopi'.
 

Which is missing permissions of the SQL-Server user. It needs DDL admin rights (something like db_ddladmin in permission setup in SQL-Server)

Hi,

 

that is new to me, Lars (when he was here giving the course) only refer to db_datareader and db_datawriter, maybe he just forgot, but no problem whatsoever...

 

so, I add the right permittions but... (there is always a but) I get the same .net errors on the page

 

please see the new updatelog file, I uploaded and it has the new updates log...

 

what can I do now Nicolai?

 
Nicolai Høeg Pedersen
Reply
bra@communikanten.dk wrote:
np wrote:

In the update log you see lines like this:

 CREATE TABLE permission denied in database 'Vesterkopi'.
 

Which is missing permissions of the SQL-Server user. It needs DDL admin rights (something like db_ddladmin in permission setup in SQL-Server)

Hi,

 

that is new to me, Lars (when he was here giving the course) only refer to db_datareader and db_datawriter, maybe he just forgot, but no problem whatsoever...

 

so, I add the right permittions but... (there is always a but) I get the same .net errors on the page

 

please see the new updatelog file, I uploaded and it has the new updates log...

 

what can I do now Nicolai?


 

Well, he must have forgotten it. Good its in the installation guide then.

 

Now that you have changed the permissions, you would have to run the update again as Lars explained.

 
Reply

 

Well, he must have forgotten it. Good its in the installation guide then.

 

Now that you have changed the permissions, you would have to run the update again as Lars explained.

 

 

Nicolai, I wrote just that in my last post, that I already updated again, got the exact same errors, and that there is a new log file in the same address ( http://www.balexandre.com/temp/updatelog.html ) so you can have a look and maybe see why do I still have errors...

 

Thank you.

 
Nicolai Høeg Pedersen
Reply
bra@communikanten.dk wrote:

 

Well, he must have forgotten it. Good its in the installation guide then.

 

Now that you have changed the permissions, you would have to run the update again as Lars explained.

 

 

Nicolai, I wrote just that in my last post, that I already updated again, got the exact same errors, and that there is a new log file in the same address ( http://www.balexandre.com/temp/updatelog.html ) so you can have a look and maybe see why do I still have errors...

 

Thank you.


 

Read the logfile before - it was not updated. Probably my local cache. Sorry...

 

From the logfile I can now see that the files and database were updated as expected.

 

If you still have the exact same error as first reported, i'll need a screendump of your IIS to get an idea of what it can be. So I can see the directory of the /Admin and the home directory.

 
Reply

If you still have the exact same error as first reported, i'll need a screendump of your IIS to get an idea of what it can be. So I can see the directory of the /Admin and the home directory.

 

I don't know what you need, so I just created a Video that you can download and see if I'm doing or I have anything wrong.

 

Thank you for the help.

 

link: http://www.balexandre.com/temp/video_for_nicolai.rar ( 1.3 MB )

 

remember to download the codec: http://www.techsmith.com/download/codecs.asp and open with WMP (VLC is not playing the file in my pc)

 
Reply

As far as I can tell from this thread you updated the database and you're left with the exception on this screen dump: http://img122.imageshack.us/img122/9159/dwerror01om7.gif.

 

The last time I saw this exception was on a solution where the CustomModules solution had been set up and the newset Admin was used, but the Dynamicweb dll's from the bin folder of the standard application had not been copied to the bin folder of the CustomModules solution.

 

Could you please check that this has been done properly? Just to make sure, please copy them once again from the Application you refer to in bullet 2 in your initial message, and let me know how it looks.

 

/Lars

 

You must be logged in to post in the forum