Classic ASP Website on Azure "The page cannot be displayed because an internal server error has occurred."
Thank you G. Stoynev! It worked after adding the custom error asp page! I used the code from the following link to create custom error asp page
http://support.microsoft.com/kb/224070
Also the following link as well helped http://www.tacticaltechnique.com/web-development/classic-asp-getlasterror-in-iis7/
Now the system.webServer section in my web.config looks as follows:
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules runAllManagedModulesForAllRequests="true"/>
<httpErrors>
<remove statusCode="500" subStatusCode="100" />
<error statusCode="500" subStatusCode="100" prefixLanguageFilePath="" path="/errors.asp" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>
One (odd) thing to try, which worked for me:
Try FTP'ing onto your Azure website, and rename your web.config
to something completely different.
I renamed mine to web.config2
- the Azure "The page cannot be displayed because an internal server error has occurred."
error message disappeared, and my ASP.Net application burst into life again.
From there, I recreated the web.config from scratch, copying chunks of it from my original version, piece by piece (to see what was causing the problem)
Yeah, I know... it's a dumb suggestion, but Azure was giving me no hints about what was causing the error, even with logging turned on, and this saved my sanity !!