为什么我在Azure Aspn.net Web API上收到错误500?

时间:2016-09-12 17:55:09

标签: asp.net node.js azure deployment

只有当我尝试从另一台服务器(节点js / $ http)发出post / put请求时才会出现此错误,但我可以使用get请求使用api。

此外,如果我从客户端(angular.js)尝试使用相同的节点js web应用程序,我可以使用postman等应用程序完美地获取,发布,放置,删除请求。那么,为什么我只有在尝试发布/放入node.js $ http库时才会收到错误500?即使我复制了确切的请求参数并将其粘贴到邮递员身上也很有用。

您可以在下面看到错误。我从azure日志中复制了它。

HTTP Error 500.0 - Internal Server Error 
The page cannot be displayed because an internal server error has occurred. 
Most likely causes:
IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred. IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
IIS was not able to process configuration for the Web site or application.The authenticated user does not have permission to use this DLL.The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.

Things you can try:
Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
Check the event logs to see if any additional information was logged.Verify the permissions for the DLL. 
Install the .NET Extensibility feature if the request is mapped to a managed handler.
Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click <a href="http://go.microsoft.com/fwlink/?LinkID=66439">here</a>. </li> </ul> 

Detailed Error Information:

> Module ManagedPipelineHandler Notification ExecuteRequestHandler 
> Handler System.Web.Http.WebHost.HttpControllerHandler Error Code
> 0x00000000

0 个答案:

没有答案