Last post Apr 11, 2016 08:42 PM by ryanbesko
Apr 11, 2016 08:26 PM|sakuradata|LINK
I have used the code from the the page "http://benfoster.io/blog/aspnet-mvc-custom-error-pages" in order to create a customized error message.
However forgot about that the the customized error page should be displayed only in production phase, not in test development phase. If I retreive a error message in test development I would like to read the error message, not reading the customized error
Do you know guys how I should do it?
I'm using ASP.net mvc 4.
Apr 11, 2016 08:42 PM|ryanbesko|LINK
If you mean debugging on your local computer, put this in the <system.web> node of your Web.config file:
If you mean when the site is hosted on a remote test server, look into Web.config transforms. I can change sections of your Web.config file when you publish the site: