2014-10-08 32 views
0

我試圖訪問我的網站直通下面的地址無法訪問網站:配置文件錯誤 - 通過本地主機

http://localhost:8090/passcode 

不過,我收到此錯誤:

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". 

Config File \\?\E:\WK\Useful info\Password Portal\PassCore\web.config 



Config Source: 

    36:  
    37: <handlers> 
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /> 
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" /> 
<remove name="ExtensionlessUrlHandler-Integrated-4.0" /> 
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /> 
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /> 
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> 
    </handlers> 

任何人都可以向我解釋什麼該代碼行是錯誤的,或者是由於其他原因導致的錯誤。

回答

0

可能很簡單,只要確保已將正確的角色和功能添加到服務器即可。我得到了這一點,並添加了.NET 4.5功能等,並處理了這條消息。如果你已經這樣做了,並且錯誤仍然存​​在,你可能需要確保你的web.config可以覆蓋這些設置,因爲默認情況下我不想讓站點覆蓋這些設置。