Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display Custom error message on asp.net compilation errors

I have configured my web.config to show 'error.htm' error page when exceptions occur on the website. But I am unable to show the page when an asp.net compilation error occurs. How do I make that happen. Im running on IIS 7.

like image 312
Storm Avatar asked Dec 27 '25 18:12

Storm


1 Answers

Why would you have a compilation error on a live site?

But, without testing, I can't imagine what you are trying to do is possible. If it can't compile it can't run any code.

like image 72
Clarence Klopfstein Avatar answered Dec 30 '25 14:12

Clarence Klopfstein