Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page

Server Error in '/' Application.

Runtime Error

Description: An exception occurred while processing your request. Additionally, another exception occurred while executing the custom error page for the first exception. The request has been terminated.

The above error occurs now and then on my PROD. Recycling the application pool resolves the issue but after few days the same error resurfaces again. I did browse through other post relavant to this topic but it seems this error occurs always for them which is not same for me.

like image 768
Gopi Avatar asked Jan 20 '14 08:01

Gopi


1 Answers

There is a server error on your error page, so the error page tries to redirect to the error page. To avoid an infinite loop, the request is terminated.

Use an HTML error page, rather than a .ASPX page.

Disabling custom errors will also 'fix' this, but, you don't want to do that on production.

You can also use ELMAH to log exceptions and then fix the issue.

like image 68
robasta Avatar answered Oct 22 '22 19:10

robasta