Re: web.config ignored!?!?!

Tech-Archive recommends: Fix windows errors by optimizing your registry



re:
!> I want debug turned off, so I simply removed that attribute.

The default behavior is debug="false".
You must set it, explicitly, to debug="true" if you want it set to true.

So, you did the correct thing, *if* you want debug set to false.
Removing the attribute sets it to the default behavior, i.e. debug="false".

However, you stated that you *want* debug set to true :

!> I have a ASP.Net 2.0 web application that I am trying to debug

If you're trying to debug your ASP.Net 2.0 web application,
you *must* set debug to true explicitly, i.e. : debug="true"




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Jonny Bergdahl" <jonny.bergdahl@xxxxxxxxxxxxxxxx> wrote in message
news:F9D60569-CD58-4D65-BEF9-8C2223B43D33@xxxxxxxxxxxxxxxx
Do you mean that it is an error to not include the Debug attribute? I want debug turned off, so I
simply removed that attribute.

Regards;
/jb

"David Wier" <dwier@xxxxxxxxxx> skrev i meddelandet news:OGA0FdljHHA.392@xxxxxxxxxxxxxxxxxxxxxxx
I may have just missed it, but I didn't see that you'd set the Web.config settings with
Debug=True

David Wier
MVP/AsPINsider

"Jonny Bergdahl" <jonny.bergdahl@xxxxxxxxxxxxxxxx> wrote in message
news:96CBD94E-A832-45E9-9CA8-B515BC4339A0@xxxxxxxxxxxxxxxx
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.

I have tried to figure out why it is ignoring these settings while still using the database
connection string contained, but with no result.

Below is the content of my web.config. Please advice!

Regards;
/jb

---8<-----------------
<?xml version="1.0"?>
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0";>
<appSettings/>
<connectionStrings>
<add name="db" connectionString="Data Source=server;Initial Catalog=db;uid=server;password=pwd"
providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<customErrors mode="Off"/>
<trace enabled="true" localOnly="false" pageOutput="false" requestLimit="50"
mostRecent="true"/>
<compilation>
<assemblies>
<add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Runtime.Remoting, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Design, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Transactions, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<authentication mode="Forms">
<forms loginUrl="logon.aspx"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" culture="sv-SE"
uiCulture="auto"/>
</system.web>
<location path="trace.axd">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>






.



Relevant Pages

  • Windows Explorer Application Error
    ... Click on CANCEL to debug the program ... If I click on OK, the error message goes away, I'm back to my desktop, all ... I still cannot use any USB ports or optical drives. ... Windows Memory Diagnostic. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: one or more parameter values are not valid
    ... I'm not sure what you mean "dump the call stack". ... What I posted is what I get when I Ctrl+Break, Debug, at the error message. ... Following these steps usually leads to some piece of information that gives us a clue as to how the code is getting entered illegally. ... My Outlook 2003 VBA code has been generating the following error message for at least several of the 25 users running it for the past couple of months. ...
    (microsoft.public.office.developer.outlook.vba)
  • web.config ignored - Solved
    ... that I can't get the error message to show in the browser. ... I have tried to activate tracing as well, by setting trace enabled="true", ... When retail is set to true, ASP.NET disables certain configuration settings such as trace output, custom errors, and debug capabilities. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Error while trying to debug
    ... When I was trying to open one of my ASP projects somewhere else, I got the following error message: ... Check to see that the project has a valid Web.config file, that the Web.config file sets "debug" to true, and that the debug verb is associated with .aspx. ... An error occurred during the processing of a configuration file required to service this request. ... Source Error: ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • file streams (ofstream, ifstream, fstream): access violation reading location 0x00000000
    ... When I debug my console application with Visual Studio (2003 in release ... build and 2005 in both debug and release), I get this error message in the ... Runtime libraries are Multi-threaded Debug and Multi-threaded for debug and ...
    (microsoft.public.vc.language)