-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
500 error on Custom Error Pages #304
Comments
Version 4.6.1 added full support for absolute URLs, so the URL parsing was changed quite a bit for explicit URLs. The most likely cause is that you are setting the Url property explicitly to a format that is not supported. The only formats that are officially supported are:
This applies to the Url, CanonicalUrl, and ImageUrl properties/XML attributes. |
This is what it looks like:
So it's pretty Root Relative to me. |
No, I was referring to the attributes/properties in your Mvc.sitemap file and/or [MvcSiteMapNode] attributes. However, if you do not have a If so, I would appreciate you providing a small demo project with this problem so I can work out what is causing it. You can either post it on GitHub or zip it and make it available for download. |
Thanks for the quick responses. |
Thanks! |
Sure thing. Give it a few minutes for the NuGet package to be built and propagated onto NuGet gallery. |
I've created custom error pages and they use the same layout/template as all my other pages. I use @Html.MvcSiteMap().SiteMapPath() to get sitemap path on each page.
Recently (not sure which version), but now I'm getting the error:
The text was updated successfully, but these errors were encountered: