How to display custom asp.net compilation error message

I configured my web.config file to show the error.htm error page when exceptions appear on the website. But I can not show the page when asp.net compilation error occurs. How to do it. Im working on IIS 7.

+3
source share
2 answers

Why did you encounter a compilation error on a live site?

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

+1
source

mode On, .

<customErrors
       mode="on" 
       defaultRedirect="~/errorpage.aspx" 
/>
-1

Source: https://habr.com/ru/post/1715812/


All Articles