Re: ASP.Net and CustomError Handling

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

From: Paul (Paul_at_discussions.microsoft.com)
Date: 09/10/04


Date: Fri, 10 Sep 2004 07:33:03 -0700

Frank,
That is correct. The first reply will not work because if I put that in
there then my custom dll would not intercept the error and do the custom
processing that I am trying to accomplish.

If anyone else has any ideas I would love to hear them. This is a really
strange behavior that I can not reproduce on my box. Thank you all for
replying and trying to help out...

Paul ><>

"Frank Mamone" wrote:

> Hi Joyjit,
>
> This will work, but not as intended. Paul wants his custom exception handler
> to take care of the error so he can do custom stuff.
>
> I too am curious on why this is not working.
>
> -Frank
>
> "Joyjit Mukherjee" <joyjit_mukherjee@hotmail.com> wrote in message
> news:eZHo8EzlEHA.1652@TK2MSFTNGP09.phx.gbl...
> > Hi,
> >
> > try putting a customerrors element in your web.config as follows: -
> >
> > <customErrors mode = "On" defaultRedirect = "YourDefaultErrorPage.aspx">
> > <error statusCode = "404" redirect = "Your404HandlerPage.aspx" />
> > <customErrors/>
> >
> > HTH
> > Regards
> > Joyjit
> >
> > "Paul" <Paul@discussions.microsoft.com> wrote in message
> > news:F3249B0A-BA99-48F6-A4D9-4695F8311B2C@microsoft.com...
> > > I have written a custom dll that I put inside the /bin directory of a
> > > production IIS server. Inside the config file of the web application i
> > have
> > > added the following setting:
> > >
> > > <httpModules>
> > > <add name="ExceptionManagerHTTPModule"
> > > type="Digiscribe.HTTPModule.ExceptionManagerHTTPModule, HTTPModule"
> />
> > > </httpModules>
> > >
> > > In this dll I have inherited from the IHttpModule which in turn has
> given
> > me
> > > the ability to trap unhandled exceptions and errors through out the
> > > application. Everything is working great. If an error happens that has
> > not
> > > been handled then this module kicks in and does what I need it to do.
> > > However, on all 404 errors it decides not to work and directs it to a
> > generic
> > > error page "The Resource cannot be found".
> > >
> > > When I was working with this application on my local box 404 errors were
> > > handled by my custom dll, once moved to production on a different
> server,
> > > they are no longer handled. Any help in figuring this out will be
> greatly
> > > appreciated. Thank you in advance.
> > >
> > > Sincerely,
> > > Paul ><>
> >
> >
>
>
>



Relevant Pages

  • Re: Custom Trendlines y=x
    ... If I understand the custom box you are using just refers to the name assigned to the ... The only option is to set the intercept to zero. ... Anyway what you want can in no sense be called a trendline. ... : line of best fit. ...
    (microsoft.public.excel.misc)
  • Re: ASP.Net and CustomError Handling
    ... Paul wants his custom exception handler ... to take care of the error so he can do custom stuff. ... >> handled by my custom dll, once moved to production on a different ...
    (microsoft.public.dotnet.framework.aspnet)
  • Intercept the Min/Max button Press
    ... Does anyone know how to intercept the min/max button press and prevent it ... from doing the resize and than perform your own custom maximize? ... Dave ...
    (microsoft.public.vb.winapi)
  • Re: Is this .NET Problem?
    ... That's fine,but my problem is during Attach DLLHOST holds the FILE ... references of the custom & system dll's,but during Detach these FILE ... the custom DLL is not possible. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Custom pipeline component cant be found
    ... I had not put my custom dll into the <BizTalk install root>\Pipeline ... >I have a custom validator pipeline component. ... > I have a BizTalk project with a custom receive pipeline. ...
    (microsoft.public.biztalk.general)