开发者

Classic ASP with COM throwing "Data source name not found and no default driver specified" on Windows Server 2008 R2

开发者 https://www.devze.com 2023-01-08 21:06 出处:网络
We have a classic ASP application that connects to a COM component. The COM component reads a connection string from the registry and connects to a datasource. We exported the COM package out of a 200

We have a classic ASP application that connects to a COM component. The COM component reads a connection string from the registry and connects to a datasource. We exported the COM package out of a 2003 box and imported into a 2008 R2 box. We've reviewed every setting to ensure its correct. When we hit the classic ASP site, we get the following in the event viewer:

Error Number: -2147467259
Error Description: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Additional Information: SPROC: sprocnamehere
Record Limit0 (User ID: 0)

We've created DSNs on the machine to ensure it could connect. We've setup the IIS anonymous user. We've setup IIS to run开发者_StackOverflow in 32-bit mode. Still, same error. Any other ideas? It almost seems as though the COM package is running as 64 bit.


You're close, but you have probably used the 64-bit version of the ODBC administrator to configure the DSNs. The DSN configuration is stored in the registry and 32-bit and 64-bit processes have different views of the registry. Run c:\windows\syswow64\odbcad32.exe instead. I think. Ask more questions about it at serverfault.com

0

精彩评论

暂无评论...
验证码 换一张
取 消