2010-05-23 128 views
1

我有一個網站,建立在Visual Studio 2008和
我需要從我的電腦(Win 7旗艦版)作爲服務器運行它
我試圖將其發佈到IIS,這根本不是工作 和我有流動的錯誤:IIS不工作

Error Summary HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.

Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
任何一個可以幫助?

回答

0

愚蠢的問題,但從來沒有IIS警告它
我已經錯過了安裝(從控制面板)支持ASP.NET 當我安裝它的組成部分,它的工作:)

0

它看起來像Web.config文件包含一些不允許的部分。某些部分只能在機器範圍內配置,有些部分只能在網站的根目錄中設置,等等。

儘可能簡化您的web.config(使其儘可能爲空)以及當頁面顯示時,一次添加一個部分。