Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/37.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/0/azure/12.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
Node.js 如何修复Azure中的500.1002错误?_Node.js_Azure_Express_Iisnode - Fatal编程技术网

Node.js 如何修复Azure中的500.1002错误?

Node.js 如何修复Azure中的500.1002错误?,node.js,azure,express,iisnode,Node.js,Azure,Express,Iisnode,成功构建应用程序后,我们出现500.1001或500.1002错误。我们尝试将应用程序捆绑到root和public-error 500。我们尝试更正iisnode.yml参数(maxNamedPipeConnectionRetry和namedPipeConnectionRetryDelay)。我们的应用程序始终在服务器上运行 <?xml version="1.0" encoding="utf-8"?> 我们找到了解决办法。刚刚用Linux迁移到VM。我们找到了解决方案

成功构建应用程序后,我们出现500.1001或500.1002错误。我们尝试将应用程序捆绑到root和public-error 500。我们尝试更正iisnode.yml参数(maxNamedPipeConnectionRetry和namedPipeConnectionRetryDelay)。我们的应用程序始终在服务器上运行

<?xml version="1.0" encoding="utf-8"?>



我们找到了解决办法。刚刚用Linux迁移到VM。

我们找到了解决方案。刚刚用Linux迁移到VM。

我不认为
切换到Linux
解决了
如何修复Azure中的500.1002错误的问题。
这不是一个解决方案,也许配置在Linux中可以工作。我也面临着同样的问题。我不认为
切换到Linux
解决了
如何修复Azure中的500.1002错误的问题。这不是一个解决方案,也许配置在Linux中是有效的。我也面临同样的问题
<webSocket enabled="false" />

<handlers>
  <add name="iisnode" path="/public/server.bundle.js" verb="*" modules="iisnode"/>
</handlers>

<rewrite>
  <rules>
    <rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
      <match url="^server.bundle.js\/debug[\/]?" />
    </rule>

    <rule name="StaticContent">
      <action type="Rewrite" url="public{REQUEST_URI}"/>
    </rule>

    <rule name="DynamicContent">
      <conditions>
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="True"/>
      </conditions>
      <action type="Rewrite" url="/public/server.bundle.js"/>
    </rule>
  </rules>
</rewrite>

<security>
  <requestFiltering>
    <hiddenSegments>
      <remove segment="bin"/>
    </hiddenSegments>
  </requestFiltering>
</security>

<httpErrors existingResponse="PassThrough" />