Error in webconfig file

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
15 years ago
Hello
I downloaded nopcommerce and installed the files in my localhost inetpub/wwwroot/NopCommerce
I matched IIS to this as usual
If I run /NopCommerceWeb/Default.aspx I get an error:
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.
with
Source Error:
Line 139:      </assemblies>
Line 140:    </compilation>
[color=red]Line 141:    <authentication mode="Forms"> ***shown in Red[/color]

I have read several articles which point to IIS but these dont seem to supply an answer for me eg
http://geekswithblogs.net/ranganh/archive/2005/04/25/37609.aspx
Can anyone please assist?
Many thanks
john
15 years ago
John,

Could you post information about how you have configured your site in IIS. Do you have direct access to IIS or are you in a hosted environment?

Thanks,
Ben
15 years ago
hi,

go into iis (start > control panel > administrative tools > iis manager) open the web sites and locate your nopCommerce instance. right click and select properties. in the properties window select the directory security tab an click the edit button (the first one). make sure that the anonymous access is checked and the user name is IUSR_<computer_name> and the Allow IIS to control password and Integrated Windows authentication both checked.

this is for iis 5.1 and 6; for 7 is somewhat the same but with different steps. hope this helps.

Regards,
Daniel

p.s. be sure to check that the nopCommerce instance has an application pool. in the properties window, virtual directory tab there is a label called Application name make sure that this isn't readonly. if so there must or might be a button entitled Create (or something similar to create an application pool for the web site).
15 years ago
Many thanks for the rapid replies,

I have checked those details and all is in accordance with the requiements.
The IIS is on my local PC so I have full access.
Having read a bit more of the installation guide I notice the item
Create empty store database.
Never having worked with MS SQL I dont have a clue how this is done maybe thats whats missing?
Thanks
John
15 years ago
Have you got MS SQL Server installed on a machine you have access to?

Once the site is live in IIS you can just run the installer at http://yourdomain/sitename/install.aspx

This will walk you through creating the database.

Ben
15 years ago
Thanks retroviz
Sorry not to answer more quickly I dont seem to have had the notification email.
When I run this
http://localhost/nopcommerce/NopCommerceWeb/install.aspx I get the same error message ie
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 139:      </assemblies>
Line 140:    </compilation>
Line 141:    <authentication mode="Forms">
Source File: D:\Inetpub\wwwroot\NopCommerce\nopcommerceweb\web.config    Line: 141
15 years ago
btw
I have SQLServer 2005 Management Studio Express on this machine
15 years ago
Correction:
The correct url should have been http://Localhost/NopCommerce/NopCommerceWeb/Install/install.aspx
15 years ago
John, which folder do you have configured as your application root?

If it is NopCommerce please move all the files from D:\Inetpub\wwwroot\NopCommerce\NopCommerceWeb into the root of D:\Inetpub\wwwroot\NopCommerce and then try running:

http://localhost/NopCommerce/Install/Install.aspx

Cheers
Ben
15 years ago
Thanks for the help
I did as you suggested  and the database install started to run.
I got to step 3, I selected create a new database but in setup log
receive
An error occured when creating database: CREATE DATABASE permission denied in database 'master'.
Creating a new database NonComm
Referring to moving the files
1 webconfig was over written
2 Did I do something wrong thereby creating a need to move the files?
3 Should I get email notification when and answer is raised? as I did not.
Regards
John
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.