我有一个从 SVN 签出的 ASP.Net 解决方案。我已将其保存在c:\inetpub\solution-name\
. 我要启动的文件位于c:\inetpub\solution-name\trunk\project-name\Default.aspx
. 当我通过浏览器访问它时http://localhost/solution-name/trunk/project-name/
,我收到以下错误:
Server Error in '/' Application.
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 253: </controls>
Line 254: </pages>
Line 255: <roleManager enabled="true" cacheRolesInCookie="true" defaultProvider="AspNetSqlRoleProvider">
Line 256: <providers>
Line 257: <clear/>
我认为问题可能与文件的目录结构有关。我不想更改结构,因为我需要能够在inetpub
等下拥有多个解决方案。
是否有 IIS 配置来解决此问题?