-2

I have downloaded a online shopping project made in asp.net from

[http://prakashjha.codeplex.com/]

and trying to execute it in visual studio 2012 but i am getting this 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 39:         <!--<roleManager enabled="true" />-->
Line 40:         <compilation debug="true" targetFramework="4.0" />
Line 41:       <authentication mode="Forms" >
Line 42:           
Line 43:         <forms  defaultUrl="default.aspx" loginUrl="login1.aspx"   cookieless="AutoDetect"  ></forms>

i have configured iis server by going to Control Panel then Programs then Turn Windows on or off Then selecting iis but still it is giving the same error. Please help Thanks in advance

4

1 回答 1

0

如果您已将此应用程序添加到 IIS 中的站点,请在开发期间更改<compilation debug="true" targetFramework="4.0" />为,<compilation debug="false" targetFramework="4.0" />因为 IIS 不支持调试,并且在 IIS 站点的高级设置中,请务必将应用程序池更改为 ASP.NETv4.0,您将完毕。

于 2013-07-18T10:33:15.420 回答