在经典 asp 中使用 excel ODBC 驱动程序时出错

发布于 2024-08-09 21:26:19 字数 298 浏览 5 评论 0原文

当我尝试加载 Excel 文档作为网页的数据源时,出现此错误 出了

Microsoft OLE DB Provider for ODBC Drivers error '80004005' 

[Microsoft][ODBC Excel Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xd5c Thread 0x7e4 DBC 0x19acf74 Excel'. 

什么问题?

I am getting this error when I try to load an excel document as a datasource for my webpage

Microsoft OLE DB Provider for ODBC Drivers error '80004005' 

[Microsoft][ODBC Excel Driver]General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xd5c Thread 0x7e4 DBC 0x19acf74 Excel'. 

What is going wrong?

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

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

发布评论

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

评论(3

嗳卜坏 2024-08-16 21:26:19

我同意 Pbearne 的观点;该消息的文本看起来与驱动程序的某些内部方面有关,而不是问题的“真正”原因。

I agree with Pbearne; the text of the message looks related to some internal aspect of the driver rather than the "real" reason for the problem.

囍笑 2024-08-16 21:26:19

第一步在 MapPath 中使用正斜杠,即 /Resources/uploads/filername.XLS

然后验证路径是否正确。

尝试以下命令查看它是否指向正确的文件:

Response.Write server.MapPath("/Resources/uploads/filername.XLS")

As a first step use forward slashes in MapPath i.e. /Resources/uploads/filername.XLS

Then verify path is correct.

Try the following to see if it points to the right file:

Response.Write server.MapPath("/Resources/uploads/filername.XLS")
和我恋爱吧 2024-08-16 21:26:19

问题很可能是Excel文件的路径错误消息是红色鲱鱼它与注册表无关

您将有一些类似这样的检查生成的路径是否正确

objConn.Open "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq="&server.MapPath("\Resources\uploads\filername.XLS")&";DefaultDir="&server.MapPath("\Resources\uploads\")

The Problem is most likly that the path the excel file is wrong the message is a red herning its nothing to do with the registry

You will have some a bit like this check the generated path is correct

objConn.Open "Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq="&server.MapPath("\Resources\uploads\filername.XLS")&";DefaultDir="&server.MapPath("\Resources\uploads\")
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文