web.config ignored - Solved

J

Jonny Bergdahl

I recently posted the following problem description:

----Snip---------------------
I have a ASP.Net 2.0 web application that I am trying to debug. Problem is
that I can't get the error message to show in the browser. It always returns
the generic error message telling me to set customErrors="Off". Problem is I
have already done that.

I have tried to activate tracing as well, by setting trace enabled="true",
but accessing the trace.axd page returns a message instructing me to do just
that.
-----------------------------

Since no solution was found in the newsgroup I had to investigate the cause myself, and it turns out that the problem was related to a setting in the machine.config file.

configuration>

....

<system.web>

....

<deployment retail="false" />

....

</system.web>

</configuration>



According to the documentation, setting retail="true" gives exactly the problem I was having:



When retail is set to true, ASP.NET disables certain configuration settings such as trace output, custom errors, and debug capabilities.


Problem solved!

Regards;
/jb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

web.config ignored!?!?! 13
What is wrong with my web.config? 1
MaxRequestLength totally ignored 2
web.config error 0
Web.Config Issues? 7
Web Service & Web.Config 1
Web.config problems..... 0
Web.config 3

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top