IIS 7 无法从 ASP.Net 应用程序服务表读取数据

发布于 2024-09-05 13:25:54 字数 285 浏览 3 评论 0原文

我正在致力于使用 ASP.Net 应用程序服务数据库部署用 C# 编写的 Web 应用程序。

该应用程序在开发机器上运行良好。

Windows Server 2003 是为了测试该应用程序而构建的。

该数据库已使用 MS SQL Server GUI 编写脚本。

ASP.Net 应用程序服务表是使用实用程序创建的。

连接字符串存储在web.config和connectionStrings.config中。

应用程序成功连接到数据库,但 10 秒后超时。

I'm working on deploying a web application written in C# with ASP.Net Application services databases.

The application runs fine on the development machine.

Windows Server 2003 has been built to test the application.

The database has been scripted across using MS SQL Server GUI.

ASP.Net application services tables were created using an utility.

The connection strings are stored in the web.config and connectionStrings.config.

The application connects to the database successfully, but then it times out after 10 seconds.

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

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

发布评论

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

评论(2

羁绊已千年 2024-09-12 13:25:54

我认为我们需要更多的信息来找出超时发生的原因。您如何知道应用程序已成功连接到数据库?

如果这就是我所掌握的所有信息并且我观察到了这些症状,我可能会尝试针对相关 SQL 实例运行 SQL Server Profiler,以查看针对数据库的哪些活动超时。

I think we'll need more than this to figure out why the timeout is happening. How do you know that the application is successfully connecting to the database?

If that's all the information I had and I observed those symptoms, I'd likely try to run SQL Server Profiler against the SQL instance in question to see what activity against the database is timing out.

何以笙箫默 2024-09-12 13:25:54

连接字符串被硬编码在应用程序的某处......啊啊

Connection string was hardcoded somewhere in the app...ahhh

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