Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> 電腦軟體教學 >> 伺服器技術 >> 關於伺服器

IIS 7/7.5 啟用 32 位應用程式模式:解決 FastCGI 500 錯誤與 Access/Excel 連線失效

編輯:關於伺服器

常見觸發場景

  • PHP 以 FastCGI 運行於 64 位 IIS,報 500.0 - FastCGI Error
  • 經典 ASP/ASP.NET 連線 Access (.mdb) 或 Excel,報「未註冊提供者 Microsoft.Jet.OLEDB.4.0」

根因

64 位 Windows 不提供 32 位 OLE DB Provider (Jet/ACE)。若應用程式集區以 64 位模式運行,32 位元件無法載入。

解決:應用程式集區啟用 32 位模式

  1. IIS 管理器 → 「應用程式集區」
  2. 選中對應集區 → 右側「進階設定」
  3. 啟用 32 位應用程式 → True
  4. 確定,集區自動回收生效

副作用與權衡

  • Worker Process (w3wp.exe) 以 WoW64 模式運行,記憶體限制 4GB,效能略有損耗
  • 純 64 位元件(如 64 位 SQL Server 驅動)仍正常運作
  • 若整站為 64 位原生碼,請勿開啟

替代方案:改用 64 位驅動

  • Access/Excel → 安裝 Microsoft Access Database Engine 2010/2016 64 位
  • 連線字串改用 Provider=Microsoft.ACE.OLEDB.12.0
  • 遷移至 SQL Server LocalDB / Express 更穩健

驗證

重新測試 PHP 頁面或 ASP 連線 Access,錯誤應消失。

Copyright © Windows教程網 All Rights Reserved