I have deployed the azure website to East US location, Reserved instance. I have CustomErrors=On. After few minutes of work (with quite good performance) app is hanging, slowing down. (I don't see any errors in elmah.) After that starts to return 500 error. My custom error page is not displayed (I see only "The page cannot be displayed because an internal server error has occurred." in plain text) so I can't even customize it. Then the app is restarted. We cannot go into production like that. I don't know what to do.
Description of HRESULT The page cannot be displayed because an internal server error has occurred. This problem occurs because the server that is running IIS 7.0 cannot access the configured root directory of the requested location.
If you are receiving an “Error 500 – Internal Server Error” message while trying to log into Canvas, you will need to clear the cookies on your web browser to resolve this issue.
IIS error The error 500.19 is an internal server error often occurring on a server using Microsoft IIS software. It indicates that the configuration data for the page is invalid. To solve the issue, delete the malformed XML element from the Web. config file or from the ApplicationHost.
I had this same issue with VS2013 today.
My WCF-Services website worked fine locally, but it refused to work when it was published to Azure.
In VS2013 Update 2, I imported the Azure Publish Profile file, published to Azure, but always got this message:
The page cannot be displayed because an internal server error has occurred
Even my basic Default.htm file, which displayed a simple "This is default.htm" message, refused to display, and, again, I'd just get that same message.
Solution
Thankfully, I had a second WCF-Service which was publishing correctly to Azure, so I compared it's web.config file to the "faulty" project's web.config file.
I found that I needed to manually strip the "system.web" section down to just this:
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" requestPathInvalidCharacters="" />
</system.web>
(which removed a load of assemblies, pages\controls, httpHandlers and httpModules stuff) and also completely get rid of the "system.webServer" section.
Once I'd done this, I could publish to Azure, and it'd all work fine.
Hope this helps.
The best advice I can give to troubleshoot your problem is to check the website diagnostics logs. You can download log locally as described here.
If you use new Windows Azure Powershell 0.6.12 you can use Powershell commands to download the logs directly using the following commands:
azure site log tail [options] [name] //{Retrieves the value for the selected key}
--filter - Filter to match against for displaying log output.
--log - Write output in a log format.
Above command streams live diagnostic logs from your website to the console --path [path] - Path under the LogFiles folder to pull logs from.
More info on PS: https://github.com/windowsazure/azure-sdk-tools-xplat
Also you can contact Azure Websites team through forums and ask for assistance.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With