2017-09-13 70 views
0

我遇到了問題,試圖讓我的Web應用程序在我們的IIS服務器上正確發佈和運行。在已發佈的Web應用程序中通過ODBC連接到Progress數據庫的問題

當我使用相同的ODBC驅動程序設置從Visual Studio 2015進行測試時,一切正常。只有一次我嘗試發佈Web應用程序,並在我遇到問題的瀏覽器中從IIS Web服務器訪問它。

我使用Visual Studio 2015年v14.0.25431.01更新3

的IIS服務器在64位Windows 2016服務器

ODBC驅動程序是一個進展OpenEdge 11.6驅動程序 - 32位

使用位於c:\ windows \ sysWOW64 \ odbcad32中的32位ODBC管理器設置ODBC連接我使用了很多論壇來說明如何確保ODBC驅動程序正確設置並使用正確的ODBC管理器,我t是。

我還遇到過一些參考編譯Web應用程序並在配置管理器中指定使用x86而不是任何CPU的文章。當我進入配置管理器時,x86不是一個選項。

我不知道如何解決這個錯誤,以便我可以從IIS服務器訪問新的Web應用程序。

我得到的是錯誤...

Server Error in '/' Application.

ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

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.Data.Odbc.OdbcException: ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:

[OdbcException (0x80131937): ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application] System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode) +1358681 System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +78

任何建議,意見,建議?

回答

1

的問題是錯誤消息試圖說些什麼(也許有點不清楚):

ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

這意味着,你正在嘗試使用32位ODBC驅動程序與IIS的64位版本,而且在64位應用程序中不可能使用32位驅動程序/庫(不僅適用於IIS,而且適用於任何Windows應用程序)。

您對VS 2015沒有任何問題,因爲它是32-bit application,所以驅動程序和應用程序相匹配。您需要爲IIS安裝64位ODBC驅動程序並配置64位ODBC。

+0

感謝您的快速回復。我不確定我是否能夠在服務器上使用32位驅動程序。我將着手嘗試獲得一個合適的64位驅動程序,看看是否能解決我所有的問題。 – shadderk

相關問題