Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Errors Thrown From View Component don't Show Error Page

$
0
0

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.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>