简体   繁体   English

在Azure Web APi上显示500内部服务器错误

[英]On azure web APi show 500 internal server error

I have developed a web api project in visual studio 2013 update 4 with EF6 in windows 8.1 pro pc and here is my connection string generated by EF 我在Windows 8.1专业版PC中使用EF6在Visual Studio 2013 Update 4中开发了一个Web API项目,这是我由EF生成的连接字符串

<connectionStrings>
<add name="bcsmdbEntities" connectionString="metadata=res://*/BCSMModel.csdl|res://*/BCSMModel.ssdl|res://*/BCSMModel.msl;
     provider=System.Data.SqlClient;provider connection string=&quot;data source=j01qw1lha2.database.windows.net;
     initial catalog=bcsmdb;persist security info=True;user id=xxxxxx;password=xxxxxxxx;
     MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />

when I am performing GET request its working fine in my local machine but after deploy it in azure as web app its return 500 internal server error. 当我执行GET请求时,它可以在本地计算机上正常工作,但是在将其作为Web应用程序以天蓝色部署后,它返回500内部服务器错误。 The error details are like this 错误详细信息是这样的

{
"Message": "An error has occurred.",
"ExceptionMessage": "The underlying provider failed on Open.",
"ExceptionType": "System.Data.Entity.Core.EntityException",
"StackTrace": "   at System.Data.Entity.Core.EntityClient.EntityConnection.Open()\r\n   at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnection(Boolean shouldMonitorTransactions)\r\n   at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransaction[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess)\r\n   at System.Data.Entity.Core.Objects.ObjectQuery`1.<>c__DisplayClass7.<GetResults>b__5()\r\n 

Can anyone please help me to find out what is going wrong ? 谁能帮我找出问题所在吗? Thanks in advance 提前致谢

我发现了问题,实际上是天蓝色的管理员正确的问题,已解决的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ASP.NET Core Web API 500内部服务器错误 - ASP.NET Core Web API 500 Internal Server Error Web Api和WCF中的HTTP发布内部服务器错误500 - Http Post Internal Server Error 500 in Web Api & WCF 显示500内部服务器错误的完整详细信息 - Show full details of 500 Internal Server Error 内部错误500:服务器中的IIS8错误,但未在浏览器中的网页上显示错误详细信息 - Internal Error 500 : IIS8 error in server but does not show error details on web page in browser JSON到ASP.NET Web API的错误:(500)内部服务器错误 - JSON to ASP.NET Web API error: (500) Internal Server Error Angularjs和ASP.NET Web Api在$ http.post上导致500 Internal Server Error - Angularjs and ASP.NET Web Api cause 500 Internal Server Error on $http.post Web Api Get方法返回HTTP / 1.1 500 Internal Server Error - Web Api Get method returns HTTP/1.1 500 Internal Server Error ASP.NET 5 Web API中的代码错误时返回500内部服务器错误 - Returning a 500 internal server error when code errors in asp.net 5 web api ASP.NET Web API - 实体框架 - 500 内部服务器错误 .Include(param =&gt; param.field) - ASP.NET Web API - Entity Framework - 500 Internal Server Error On .Include(param => param.field) ASP .NET Web API:跟踪侦听器:HTTP / 1.1 500内部服务器错误:怎么了? - ASP .NET Web API: Trace Listeners: HTTP/1.1 500 Internal Server Error: What's wrong?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM