I have an Asp.Net Core 2.0 application that is configured to show an Error Page in Production or use DeveloperExeptionPage.
If I throw an error directly from a controller, this works fine. However if I throw an error from a ViewComponent it does not work. I get a blank page in the browser and when I look in the Developer Tools on Chrome, the page request just says status "failed" and "GET (page url) 200 ()" in the console.
In IE, I get "This Page cannot be display" with "Error Code: INET_E_DOWNLOAD_FAILURE"
Any help would be appreciated.