Last post Jul 12, 2018 01:22 AM by shwetalenka
Feb 08, 2016 02:02 PM|Eagle_f90|LINK
My understanding is that if you added `app.UseExceptionHandler();` and give it a path that ASP.Net is supposed to load that page when ever there is an error that is not caught in code but in my case I am still getting the normal "Http 500 Internal Server
Error" page. I can take the path I give `UseExceptionHandler()` and put it right in my browser and it load the page fine so I know the path and the page work. Am I miss understanding how this is to work, is it broken, or am I doing something wrong?
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
Error Page Code:
Please note that "Page not Found" errors are routed to the `/Error/PageNotFound` with no problems, it is just other errors are not. As a test I copied the string from `UseStatusCodePagesWithReExecute` into `UseExceptionHandler` but still get the generic
500 error page.
Feb 09, 2016 11:43 AM|shwetalenka|LINK
Have you added the dependency in project.json:
Jul 12, 2018 01:22 AM|shwetalenka|LINK
Is your problem resolved?