I am using Windows Azure Websites to host a node.js application. So far everything is great except for my custom errors. In my node app I have an error handler that renders
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>
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" />