Hi Jonathan,
Could be but unfortunately I don't really have that much experience with umbraco sites hosted on Azure. Few things I could think of not Azure related:
did the application restarted whilst editing the web.config?
can you find anything related to this issue in the log files?
You can make 500 pages which pull from Umbraco but I would not advise it.
If there is an error in your application then trying to pull content from Umbraco or do anything dynamic may fail also. I've had a situation previously where the 500 page itself was erroring which caused a loop!
We always tend to do static 500 pages for this reason.
500 Custom error page
Hi,
I am trying to create a custom 500 error page to capture something like:
https://yourwebsite.com/c:/boot.ini
I have set up the webconfig to match:
But it doesnt seem to capture this url Internal error,
Jon
Hi Jonathan,
You could try
customErrors:
Note that by setting the mode flag to
RemoteOnly
you'll not get to see the 500 page on your local/develop environment.httpErrors:
Hi,
No - this hasn't worked. One thing that may help - the site is hosted on Azure - do you think there maybe something overriding this?
Jon
Hi Jonathan, Could be but unfortunately I don't really have that much experience with umbraco sites hosted on Azure. Few things I could think of not Azure related:
You could also try using the httperrors elements. Examples:
ExecuteURL
serves dynamic content such as an .aspx page (the path value has to be a server relative URL):File
serves a custom error file, such as a .html page:Would it be possible to use an Umbraco Content for the 500 error message as well? just like for 404 error.
You can make 500 pages which pull from Umbraco but I would not advise it.
If there is an error in your application then trying to pull content from Umbraco or do anything dynamic may fail also. I've had a situation previously where the 500 page itself was erroring which caused a loop!
We always tend to do static 500 pages for this reason.
Hi. This is what I use and it works on Azure:
There are two places you need to configure in
web.config
. The first is insystem.webServer
...and then in
System.Web
...As mentioned, for testing locally change
mode
fromRemoteOnly
toOff.
Are you getting a default IIS 500 page instead of your custom one? If so, what is trySkipIisCustomErrors set to in your umbracoSettings.config? If this is set to false then this may be your issue https://our.umbraco.com/Documentation/Getting-Started/Backoffice/Property-Editors/Built-in-Property-Editors/Nested-Content/index-v7
Hi,
I use this article as a reference when setting up error pages on sites:
https://blog.mortenbock.dk/2017/02/03/error-page-setup-in-umbraco/
Cheers
Alex
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.