具有应用程序 MVC3 的 IIS6 或 7 与 VS2010 开发服务器之间的不同行为

发布于 2024-12-22 05:45:19 字数 318 浏览 2 评论 0原文

我对使用 mvc3 框架开发的应用程序有一个很大的问题。

在此应用程序中,我引用了 VB6 dll,它允许使用 ADODB 访问 SQL Server 数据库(这是另一个应用程序的 dll,我无法使用 .NET 直接访问数据库)。

当我使用 Visual Studio 开发服务器调试应用程序时,我没有问题,但如果我使用 IIS(6 或 7),我会收到一条错误消息(此消息是个性化的),显示数据库无法打开。

我在 VS2010 中使用控制台应用程序进行了测试,它工作正常!

如果有人有想法,我必须在圣诞节前的星期五部署我的应用程序。

非常感谢

I have a very big problem with an application developed with mvc3 framework.

In this application I have a reference to a VB6 dll which allow to access to a SQL Server database with ADODB (this is a dll of another application and I can't access directly to the database with .NET).

When I debug my application with Visual Studio development Server I have no problem but if I use IIS (6 or 7) I have an error message (this message is personalized) which show that the database can't be open.

I tested with a console application in VS2010 and it works properly !!

If anybody has an idea I have to deploy my application on Friday before Christmas.

Thank you very much

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

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

发布评论

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

评论(1

看春风乍起 2024-12-29 05:45:19

还好我已经找到问题出在哪里了。事实上,我使用64位的Windows 7,而VB6 dll使用的ODBC驱动程序是32位驱动程序。 ODBC 源是用户源而不是系统源,因此我创建了系统源并且一切正常。

It's fine I have found where was the problem. In fact I use windows 7 in 64 bits and the ODBC Driver used by VB6 dll is 32 bits driver. And the ODBC sourcewas an user source and not a system source so I created a system source and all works fine.

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