本地工作但托管在 AppHarbor 上无法查询 SQL Server

发布于 2024-12-15 16:40:52 字数 351 浏览 4 评论 0 原文

因此,我的 web.config 连接字符串指向 appharbor 上的 SQL Server - 从本地(运行 Visual Studios)我可以登录并且会员资格有效。但是,从托管端的构建来看,我很抱歉,处理您的请求时发生了错误。

这很奇怪,因为我从本地创建了一个新用户,并使用 SQL Server Management Studio 检查数据是否已添加到托管服务器并且可以正常工作。

从我的最新版本中我收到错误:

抱歉,处理您的请求时发生错误。

这很奇怪,因为它们都指向同一台服务器...

有人知道我做错了什么吗?

So I have my web.config connection string pointing to my SQL Server on appharbor - from local (running Visual Studios) I can login and the memberships works. However from the build that is on the hosting side I get sorry, an error occurred while processing your request.

This is strange because I made a new user from local and check with SQL Server Management Studio whether or not the data has been added to the hosting server and it WORKS.

From my latest build I get the error:

Sorry, an error occurred while processing your request.

which is weird because they both point to the same server...

Anyone have an idea of what I am doing incorrectly?

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

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

发布评论

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

评论(2

娇纵 2024-12-22 16:40:52

ASP.NET MVC 项目默认启用 "HandleErrorAttribute"。您应该将其从 App_Start 文件夹中的 FilterConfig.cs 中删除,以查看实际错误而不是处理的响应。

它位于 RegisterGlobalFilters 方法中,其中 filters.Add(new HandleErrorAttribute()); 应被删除。

ASP.NET MVC project has the "HandleErrorAttribute" on by default. You should remove it from FilterConfig.cs in App_Start Folder to see the actual error rather than the handled response.

It's located in the RegisterGlobalFilters method where filters.Add(new HandleErrorAttribute()); should be removed.

尾戒 2024-12-22 16:40:52

AppHarbor 有一个常见问题解答来帮助您解决此类部署错误。特别是,您应该检查 AppHarbor 上的“Errors”界面并禁用 customErrors。如果常见问题解答不能帮助您解决问题,请详细说明问题。

AppHarbor has a FAQ to help you troubleshoot deployment errors like these. In particular, you should inspect the "Errors" interface on AppHarbor and disable customErrors. Please elaborate the question if the FAQ doesn't help you solve the problem.

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