.net 很抱歉,在执行您的要求时发生了一个错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10434959/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 16:23:27  来源:igfitidea点击:

Sorry, an error occurred while processing your request

.netasp.net-mvcazure

提问by user

I publish my asp.net mvc 3 app in windows azure and when I go my site I see error "Sorry, an error occurred while processing your request." what does it mean?

我在 windows azure 中发布了我的 asp.net mvc 3 应用程序,当我访问我的网站时,我看到错误“抱歉,处理您的请求时出错”。这是什么意思?

采纳答案by AvkashChauhan

As others suggested there could be scores of things went wrong which cause this problem. I would suggest you to read the suggestion given in the following post to start investigating your problem:

正如其他人所说,可能有很多事情出错了,导致了这个问题。我建议您阅读以下帖子中给出的建议以开始调查您的问题:

Webrole is not starting and always busy

Webrole 未启动且一直很忙

Here is the connection string you would need to add into web.config to connect SQL Azure DB from ASP.NET application

这是您需要添加到 web.config 以从 ASP.NET 应用程序连接 SQL Azure DB 的连接字符串

<connectionStrings>
<add name="SQLAzureConnection" connectionString="Data Source=<ProvideServerName>.database.windows.net;Initial Catalog=TestDb;User ID=<ProvideUserName>;Password=<ProvidePassword>;Encrypt=true;Trusted_Connection=false;"
providerName="System.Data.SqlClient" />
</connectionStrings>