Windows Azure Websites is overriding my 404 and 500 error pages in my node.js app Windows Azure Websites is overriding my 404 and 500 error pages in my node.js app azure azure

Windows Azure Websites is overriding my 404 and 500 error pages in my node.js app


Well nevermind, I found the issue. If anyone else is having the same problem simply add the following under <system.webServer> in web.config:

<httpErrors existingResponse="PassThrough" />


Had a similar problem with MVC project hosted in windows azure. On local machine hosted under IIS was working fine but on live machine I was getting the following error "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable."

Adding this to web config under system.webServer saved my day

My web.config looks like this

<system.web>   ***    <customErrors mode="RemoteOnly" defaultRedirect="~/Error/PageNotFound">      <error statusCode="404" redirect="~/Error/PageNotFound" />      <error statusCode="500" redirect="~/Error/ServerError"/>    </customErrors>  </system.web>***<system.webServer>    <httpErrors existingResponse="PassThrough" /></system.webServer>