Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/image/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 为什么Azure Aspn.net Web API上出现错误500?_Asp.net_Node.js_Azure_Deployment - Fatal编程技术网

Asp.net 为什么Azure Aspn.net Web API上出现错误500?

Asp.net 为什么Azure Aspn.net Web API上出现错误500?,asp.net,node.js,azure,deployment,Asp.net,Node.js,Azure,Deployment,只有当我尝试从另一台服务器(node js/$http)执行post/put请求时,才会出现此错误,但我能够使用带有get请求的api 此外,如果我尝试从客户端(angular.js)在同一个节点上运行js web应用程序,我可以完美地执行get、post、put和delete请求,还可以使用postman等应用程序。那么,为什么只有在尝试使用node.js$http库进行post/put时才会出现错误500?甚至我也复制了确切的请求参数,并将其粘贴到了邮递员那里,结果成功了 您可以在下面看到错

只有当我尝试从另一台服务器(node js/$http)执行post/put请求时,才会出现此错误,但我能够使用带有get请求的api

此外,如果我尝试从客户端(angular.js)在同一个节点上运行js web应用程序,我可以完美地执行get、post、put和delete请求,还可以使用postman等应用程序。那么,为什么只有在尝试使用node.js$http库进行post/put时才会出现错误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
HTTP错误500.0-内部服务器错误 由于发生内部服务器错误,无法显示该页。 最可能的原因: IIS收到请求;但是,在处理请求期间发生内部错误。此错误的根本原因取决于处理请求的模块以及发生此错误时工作进程中发生的情况。IIS无法访问网站或应用程序的web.config文件。如果NTFS权限设置不正确,可能会发生这种情况。 IIS无法处理网站或应用程序的配置。经过身份验证的用户没有使用此DLL的权限。请求已映射到托管处理程序,但未安装.NET扩展功能。 您可以尝试的事情: 确保web.config文件的NTFS权限正确,并允许访问web服务器的计算机帐户。 检查事件日志以查看是否记录了任何其他信息。验证DLL的权限。 如果请求映射到托管处理程序,请安装.NET扩展功能。 创建跟踪规则以跟踪此HTTP状态代码的失败请求。有关为失败请求创建跟踪规则的详细信息,请单击 详细错误信息: >模块ManagedPipelineHandler通知ExecuteRequestHandler >Handler System.Web.Http.WebHost.HttpControllerHandler错误代码 >0x00000000
这是一个带有相同错误消息的线程,您可以尝试一下此解决方案吗?任何更新,请随时通知我。@GaryLiu MSFT我已经设置了“customError mode=”Off“。