我已经从
下载了一个在asp.net上制作的在线购物项目[http://prakashjha.codeplex.com/]
并尝试在visual studio 2012中执行它,但我收到此错误
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>
我已经配置了iis服务器 然后控制面板 程序然后 打开或关闭Windows 然后选择iis 但它仍然给出同样的错误。 请帮忙 提前致谢
答案 0 :(得分:0)
如果您已将此应用程序添加到IIS中的站点,那么请将开发期间更改<compilation debug="true" targetFramework="4.0" />
更改为<compilation debug="false" targetFramework="4.0" />
,因为IIS不支持调试,并且在IIS中的站点的高级设置中请确保将应用程序池更改为ASP.NETv4.0,您将完成。