I am trying to use simple html page when 503 service unavilable error comes.
I am using below in web.config's system.webservers
<httpErrors errorMode="Custom">
<remove statuscode="503" substatuscode="-1">
<error statuscode="503" responseMode="File" path="Views/Shared/IISError.htm">
</httpErrors>
This is nt working. I am still getting IIS default page when I stop my application.
I am using mvc3, razor application.