Answer the question
In order to leave comments, you need to log in
How to fix error 500.1002 in Azure?
Constantly getting error 500.1001 or 500.1002 after successfully building the application. Tried to bandit to root folder and subfolder - error 500. Tried to edit iisnode.yml parameters (maxNamedPipeConnectionRetry and namedPipeConnectionRetryDelay). The app is always on.
Our web.config.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<webSocket enabled="false" />
<handlers>
<add name="iisnode" path="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="server.bundle.js"/>
</rule>
</rules>
</rewrite>
<security>
<requestFiltering>
<hiddenSegments>
<remove segment="bin"/>
</hiddenSegments>
</requestFiltering>
</security>
<httpErrors existingResponse="PassThrough" />
</system.webServer>
</configuration>
Answer the question
In order to leave comments, you need to log in
We found a solution - we migrated to a Linux virtual machine. It's easier than "arguing" with IISNode.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question