【发布时间】:2020-01-02 08:00:43
【问题描述】:
当我尝试使用新的 Windows Server 2016 连接到远程服务器上的 WebAPI 时,似乎从服务器收到错误 500。 我在这里束手无策。可能是什么原因?其他服务器上的 WebAPI 工作正常。
?response
{StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
Pragma: no-cache
Cache-Control: no-cache
Date: Thu, 02 Jan 2020 07:43:05 GMT
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
Content-Length: 36
Content-Type: application/json; charset=utf-8
Expires: -1
}}
Content: {System.Net.Http.StreamContent}
Headers: {Pragma: no-cache
Cache-Control: no-cache
Date: Thu, 02 Jan 2020 07:43:05 GMT
Server: Microsoft-IIS/10.0
X-Powered-By: ASP.NET
}
IsSuccessStatusCode: false
ReasonPhrase: "Internal Server Error"
RequestMessage: {Method: POST, RequestUri: 'http://url/appname/api/api/Login', Version: 1.1, Content: System.Net.Http.ObjectContent`1[[appname.BO.AdUserBO, appname.BO, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Headers:
{
Content-Type: application/json; charset=utf-8
Content-Length: 199
}}
StatusCode: InternalServerError
Version: {1.1}
【问题讨论】:
-
事件查看器中有什么东西吗?这里没有错误描述。 :(
标签: c# asp.net-mvc asp.net-web-api