2017-09-13 28 views
0

IIS 웹 서버에서 웹 응용 프로그램을 게시하고 올바르게 실행하는 데 문제가 있습니다.게시 된 웹 응용 프로그램에서 ODBC를 통해 진행 데이터베이스에 연결하는 문제

동일한 ODBC 드라이버 설정으로 Visual Studio 2015에서 테스트하면 모든 것이 정상적으로 작동합니다. 한 번만 웹 응용 프로그램을 게시하고 문제가 발생하는 브라우저의 IIS 웹 서버에서 액세스하려고 시도합니다.

나는 비주얼 스튜디오에게 2015 v14.0.25431.01 업데이트 3

를 IIS 서버가

ODBC 드라이버가 진행 OpenEdge 11.6 드라이버 64 비트 Windows 2016 서버되어 사용하고 - 32 비트

ODBC 연결은 C에서 발견 된 32 비트 ODBC 관리자를 사용하여 설정입니다 : \ 윈도우 \ SysWOW64와는 odbcad32

\ 내가 ODBC 드라이버가 올바르게 설정되어 있는지 확인하고 올바른 사용을 말하는 많은 포럼을 가로 질러왔다 ODBC 관리자, 나는 t는이다.

또한 웹 응용 프로그램을 컴파일하고 모든 CPU 대신 x86을 사용하도록 구성 관리자를 지정하는 일부 게시물을 보았습니다. x86은 구성 관리자에 들어갈 때 옵션이 아닙니다.

IIS 서버에서 새 웹 응용 프로그램에 액세스 할 수 있도록이 오류를 해결하는 방법을 놓치고 있습니다.

I가 얻을 오류 ...

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 응용 프로그램에서도 가능).

VS2015는 32-bit application이므로 문제가 없으므로 드라이버와 응용 프로그램이 일치합니다. IIS 용 64 비트 ODBC 드라이버를 설치하고 64 비트 ODBC를 구성해야합니다.

+0

빠른 응답을 보내 주셔서 감사합니다. 서버에서 32 비트 드라이버를 사용할 수 있는지 여부는 확실하지 않았습니다. 나는 적절한 64 비트 드라이버를 얻고 모든 문제를 해결할 수 있는지 알아볼 것입니다. – shadderk