web.config ignored!?!?!

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



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

  • RE: web.config ignored!?!?!
    ... 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", ... using the database connection string contained, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: web.config ignored!?!?!
    ... 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", ... using the database connection string contained, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: web.config ignored!?!?!
    ... that I can't get the error message to show in the browser. ... I have tried to figure out why it is ignoring these settings while still ... using the database connection string contained, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Help Please!
    ... > A big error message about authorization appears. ... What IS the error message? ... >> Microsoft FrontPage MVP ... >> Spider Web Woman Designs ...
    (microsoft.public.frontpage.programming)
  • Re: 401 Access Denied
    ... "Proper authorization is required for this ... Either your browser does not perform authorization, ... Troubleshoot Situations Where You Cannot Connect to Secure Web Sites ... "The Page Cannot Be Displayed" Error Message on a Secure Web Site ...
    (microsoft.public.windows.inetexplorer.ie6.browser)