Hi Shawn Mccabe,
I have created a sample ASP.N ET Core Web app and explicitly threw a error in the controller.
public IActionResult Index()
{
throw new Exception("This is a test exception");
return View();
}
- Even I got the same error initially in the error page.
- As suggested in the message, I have set ASPNETCORE_ENVIRONMENT=Production in the Environment Variables section.
- That is just a static content which is generated by default with the ASP.NET Core template in
Views
=>Shared
=>Error.cshtml
page.
- Remove that para, save and publish the app.
Hope this helps
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.