因此,我的 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?
发布评论
评论(2)
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 fromFilterConfig.cs
inApp_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.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.