带有 COM 的经典 ASP 抛出“未找到数据源名称且未指定默认驱动程序”在 Windows Server 2008 R2 上

发布于 2024-09-10 20:41:59 字数 741 浏览 2 评论 0原文

我们有一个连接到 COM 组件的经典 ASP 应用程序。 COM 组件从注册表中读取连接字符串并连接到数据源。我们从 2003 盒子中导出 COM 包,然后导入到 2008 R2 盒子中。我们已经审查了每个设置以确保其正确。当我们访问经典 ASP 站点时,我们会在事件查看器中看到以下内容:

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)

我们已在计算机上创建了 DSN 以确保它可以连接。我们已经设置了 IIS 匿名用户< /a>.我们已将 IIS 设置为在 32 位中运行模式。尽管如此,还是同样的错误。还有其他想法吗?看起来好像 COM 包正在以 64 位运行。

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 in 32-bit mode. Still, same error. Any other ideas? It almost seems as though the COM package is running as 64 bit.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦行七里 2024-09-17 20:41:59

您已经很接近了,但您可能已经使用 64 位版本的 ODBC 管理器来配置 DSN。 DSN 配置存储在注册表中,32 位和 64 位进程具有不同的注册表视图。改为运行 c:\windows\syswow64\odbcad32.exe。我认为。在 serverfault.com 上询问更多相关问题

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文