我是 ASP.Net 的新手。我已经打开了一个没有错误的解决方案。当我按下 时F5
,会在我的 Chrome 窗口中打开一个带有 URL 的新选项卡http://localhost:4435/foo/Default.aspx
。但是,什么也没有发生——没有显示页面。它似乎永远在加载。
当我尝试在不通过 Studio 的情况下使用如下所示的 URL 访问该页面时http://localhost/solution-name/trunk/foo/
,我收到以下错误:
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/>
我不确定这两个是否相关。我只想让这个解决方案启动并运行。我究竟做错了什么?