我對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