List Info

Thread: Server.GetLastError and the Application_Error event not working on certain pages




Server.GetLastError and the Application_Error event not working on certain pages
user name
2006-11-14 16:39:07
Hello all, 

We have the unhandled exception treatment in our Global.asax
file
(ASP.NET 1.1) all the pages that require authentication show
the proper
behavior when an unhandled exception is thrown, this is, the
Application_Error event is triggered and the
Server.GetLastError has the
value of this exception.

However whenever there is an unhandled exception on the
pages that are
not marked as secured, such as the login.aspx page, the
Application_Error event never happens.

This pages are affected by the following configuration
settings in the
web.config file:

<location path="Security">

    <system.web>

      <authorization>

        <allow users="*">

        </allow>

      </authorization>

    </system.web>

  </location>

Is this a normal behavior or I'm missing a configuration
issue?

Thanks in advance, 

Lizet


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )