Source Code Compilation Error

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
13 лет назад
I am getting following error...Please help.

I am using VS 2010 / IIS7 / ASP 4.

nopCommerce1.80_Source is in IIS/wwwroot. But when I try to build this in VS..I get following error.


Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

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 41:       </assemblies>
Line 42:     </compilation>
Line 43:     <authentication mode="Forms">
Line 44:       <forms name="NOPCOMMERCE.AUTH" loginUrl="~/login.aspx" protection="All" timeout="43200" path="/" requireSSL="false" slidingExpiration="true" defaultUrl="~/default.aspx" enableCrossAppRedirects="false"/>
Line 45:     </authentication>
13 лет назад
https://www.nopcommerce.com/boards/t/657/getting-configuration-error.aspx
https://www.nopcommerce.com/boards/t/6712/config-error-on-net-4.aspx
https://www.nopcommerce.com/boards/t/6154/how-to-install-nopcommerce-on-arvixe.aspx
13 лет назад
We I tried all the options ...but still getting this error, and not being able to do the build.

Is it possible that this error is due to multiple web.config defined (in C:\nopCommerce_1.80_Source, in Administrator and in Modules directory). The error is on the one defined in the nopCommerceStore\Modules directory)...


Bit confused ............
13 лет назад
Maybe you're right. Just try to delete web.config in Modules directory

P.S. You don't have to upload nopCommerceStore directory to your server. Upload its content
13 лет назад
Thanks for the details.

I gort the issue resolved.

In the IIS,

I added the Web Side as an application.

But, needed to add the ApplicationName as a Pool also. The application was in the Default Pool.

Followed the following steps, and that resolved the issue.

Click on the Application Pool (in left Panel)
    All Application Pools are displayed
Click on the Add Application (it's on the left panel)
     A window pops up.
     Add you Application Name as a Pool Name
     .NET Framework as v4.o
     Managed Pipeline Mode Integrated


GoBack to you application, Advanced Settings and change the Application Pool to the newly created Application Pool.


Hope this helps, if someone is facing the same issue.

I am not an expert in the ASP/IIS (newbie here)...moreof a Java guy...so not sure why this setting is needed on IIS.

But I am able to now do the build and run this in my local.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.