繁体   English   中英

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

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

我在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" />

当我执行GET请求时,它可以在本地计算机上正常工作,但是在将其作为Web应用程序以天蓝色部署后,它返回500内部服务器错误。 错误详细信息是这样的

{
"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 

谁能帮我找出问题所在吗? 提前致谢

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

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM