我对IIS和ASP.NET很新。我只使用它作为我需要的脚本使用它。 我已将IIS安装到我的W7机器上,并将其全部设置为使用ASP。ASP.NET IIS应用程序错误
然而, 当我访问剧本我只是得到一个错误是如下:
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 34: <globalization culture="en-GB" uiCulture="en-GB"/>
Line 35: <httpRuntime executionTimeout="3600" maxRequestLength="104856"/>
Line 36: <sessionState mode="InProc" cookieless="false" timeout="720"/>
Line 37: <compilation debug="true" targetFramework="4.0">
Line 38: <assemblies>
按我说的即时通讯新到这一点,我已经找到了几个帖子围绕这不能不做到这一点,并另一个,但我不知道如何实施修复。 如果有人能够给我一步一步的指导或者指导我这样的事情,那将会很棒。
干杯
是否将您的虚拟目录配置为IIS中的应用程序? – jrummell 2012-07-17 14:55:41
我不知道这是什么意思是诚实的伴侣。我更习惯于Apache。 – 2012-07-17 14:56:46
之前从未使用IIS此错误通常意味着您已经忘记在IIS中创建根应用程序(这最容易从Visual Studio完成:项目属性 - 选择使用本地IIS单击创建虚拟目录。或者,您有一个嵌套的网站.config在一个使用config部分的子目录中,该部分必须位于root应用程序中。 – StuartLC 2012-07-17 14:56:48