0
我有一个ASP.Net解决方案,我已经检出了SVN。我已将它保存在c:\inetpub\solution-name\
之下。我试图启动的文件位于c:\inetpub\solution-name\trunk\project-name\Default.aspx
。当我访问通过浏览器http://localhost/solution-name/trunk/project-name/
,我得到以下错误:ASP.Net不会启动 - IIS错误,因为它不在根?
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配置来解决这个问题?
我试着'添加虚拟目录'。我进入了一个“别名”和“物理路径:”(我不确定这是什么,但我指出它是我默认项目的文件夹)。当我点击'Test Settings'时,'Authentication'好像已经过去了,但'Authorization'返回了这个: – snoopy76 2013-05-13 20:37:41
“服务器被配置为使用通过身份验证的内置帐户来访问指定的物理路径。但是,IIS管理器无法验证内置帐户是否具有访问权限。请确保应用程序池标识具有对物理路径的读取权限。如果此服务器加入到域中,并且应用程序池标识为NetworkService或LocalSystem,验证 \ $是否具有对物理路径的读取权限,然后再次测试这些设置。“ –
snoopy76
2013-05-13 20:40:10