1. 程式人生 > >iis配置問題報錯 -- Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies

iis配置問題報錯 -- Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies

could not ans 程序 sys logs info req exc 方案

具體提示:

Could not load file or assembly ‘Oracle.DataAccess‘ or one of its dependencies. 試圖加載格式不正確的程序。

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: Could not load file or assembly ‘Oracle.DataAccess‘ or one of its dependencies. 試圖加載格式不正確的程序。

技術分享

解決方案:

因為這個Oracle.DataAccess.dll為32位,所以應用程序不兼容造成此種錯誤。具體解決方法如下。

在IIS應用程序池中,啟用32位應用程序設置為true即可。

技術分享

iis配置問題報錯 -- Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies