Re: web.config ignored!?!?!
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Wed, 9 May 2007 10:42:06 -0400
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>
.
- Follow-Ups:
- Re: web.config ignored!?!?!
- From: Jonny Bergdahl
- Re: web.config ignored!?!?!
- References:
- web.config ignored!?!?!
- From: Jonny Bergdahl
- Re: web.config ignored!?!?!
- From: David Wier
- Re: web.config ignored!?!?!
- From: Jonny Bergdahl
- web.config ignored!?!?!
- Prev by Date: Re: Can't add value to DropDownList, only the text is being added.
- Next by Date: Re: FORM
- Previous by thread: Re: web.config ignored!?!?!
- Next by thread: Re: web.config ignored!?!?!
- Index(es):
Relevant Pages
|