Windows-7

HTTP 錯誤 500.19 - IIS 和 ColdFusion 的內部伺服器錯誤

  • August 2, 2018

我從我的電腦(Windows 7/64 位)上解除安裝了 ColdFusion 9,但我web.config在 C:\inetpub\wwwroot 中的文件仍然包含以下內容,其中還包括有關 ColdFusion 的資訊:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <system.webServer>
       <handlers>
           <add name="JWildCardHandler" path="*" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\1\jrun_iis6_wildcard.dll" resourceType="Unspecified" requireAccess="None" />
           <add name="hbmxmlHandler" path="*.hbmxml" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
           <add name="cfswfHandler" path="*.cfswf" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
           <add name="cfrHandler" path="*.cfr" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
           <add name="cfcHandler" path="*.cfc" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
           <add name="cfmlHandler" path="*.cfml" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
           <add name="cfmHandler" path="*.cfm" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
           <add name="jwsHandler" path="*.jws" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
           <add name="jspHandler" path="*.jsp" verb="*" modules="IsapiModule" scriptProcessor="C:\ColdFusion9\runtime\lib\wsconfig\jrun_iis6.dll" resourceType="Either" responseBufferLimit="0" />
       </handlers>
       <defaultDocument>
           <files>
               <add value="index.cfm" />
           </files>
       </defaultDocument>
       <staticContent>
           <mimeMap fileExtension=".air" mimeType="application/vnd.adobe.air-application-installer-package zip" />
       </staticContent>
   </system.webServer>
</configuration>

現在,當我從瀏覽器打開 127.0.0.1 時,我得到

HTTP Error 500.19 - Internal Server Error,
Handler:    Not yet determined
Error Code: 0x80070021
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".

誰能幫我解決這個錯誤?我是 ColdFusion 和 IIS 集成的新手。

如果您解除安裝了 ColdFusion,您可以刪除處理程序下的所有子條目。您還可以刪除 .air 的 mimeMap。將 defaultDocument 值更改為您打算用作首頁的任何值(index.htm、index.aspx 等)這應該可以消除 500.19 錯誤。

引用自:https://serverfault.com/questions/523948