2017-09-13 28 views
0

Webアプリケーションを公開し、IISサーバーで正常に動作させることに問題があります。公開されたWebアプリケーションでODBC経由でProgressデータベースに接続する際の問題

同じODBCドライバ設定でVisual Studio 2015からテストすると、すべて正常に動作します。一度私はWebアプリケーションを公開し、問題が発生しているブラウザでIIS Webサーバーからアクセスしようとします。

私は、IISサーバーが64ビットのWindows 2016サーバー

あるODBCドライバは、プログレスOpenEdge 11.6ドライバでのVisual Studio 2015 v14.0.25431.01アップデート3

を使用しています - 32ビット

ODBC接続は、32ビットODBCマネージャを使用してセットアップでは、cで見つかった:窓を\ \ SYSWOW64 \

odbcad32私はODBCドライバが正しく設定されていることを確認すると言う多くのフォーラムに出くわした、と正しいを使用してODBCマネージャー、私はtはです。

また、Webアプリケーションのコンパイルを参照し、Any CPUの代わりにx86を使用するようにConfiguration Managerを指定している記事もあります。私が構成マネージャーに入るとき、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

問題は、エラーメッセージが言うことを試みるものです(多分ビットは不明):あなたは、IISの64ビット版と32ビットのODBCドライバを使用しようとしていることを意味

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

64ビットアプリケーションでは32ビットドライバ/ライブラリを使用することはできません(IISだけでなくWindowsアプリケーションの場合)。

これは32-bit applicationなので、VS 2015に問題はないので、ドライバとアプリケーションが一致します。 IIS用の64ビットODBCドライバをインストールし、64ビットODBCを構成する必要があります。

+0

ありがとうございました。サーバー上で32ビットドライバを使用できるかどうかはわかりませんでした。私は適切な64ビットドライバを取得しようとすると、それがすべての私の問題を解決するかどうかを調べるつもりです。 – shadderk

関連する問題