windows 64 下配置iis

來源:互聯網
上載者:User
 

   今天把系統換成了windows 64位的系統,以前在32位下正常啟動並執行網站部署在64位下不能訪問了,始終報404.17或404.3的錯誤。

根據錯誤提示是沒有配置MIME映射。在微軟官網的協助手冊裡面的解決方案是(原文HTTP 錯誤 404.17):

在web.config檔案裡面加入應用程式處理的配置:

 

 <system.webServer>

    <handlers>

          <!--配置MIME映射-->

      <add name="urlre" path="*" verb="*" modules="IsapiModule" scriptProcessor="c:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll"

resourceType="Unspecified" requireAccess="None"

preCondition="classicMode,runtimeVersionv4.0,bitness64" />

    </handlers>

  </system.webServer>

根據不同的作業系統選擇對應的配置(我的.NET Framework 版本是4.0)。

 

ASP.NET 2.0 Classic Mode 32-bit Handler(windows32位作業系統的配置)

<add name="PageHandlerFactory-ISAPI-2.0" path="*.aspx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />

 

ASP.NET 2.0 Classic Mode 64-bit Handler(windows64位作業系統的配置)

<add name="PageHandlerFactory-ISAPI-2.0-64" path="*.aspx" verb="GET,HEAD,POST,DEBUG" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" />

就這樣加入這個映射配置,程式正常運行了。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.