It being treated by the catch block. The only thing you're doing is re-throwing the same exception, which isn't being handled by the code that called the code snippet you posted.
Dave Kreskowiak Microsoft MVP - Visual Basic
hey bro! try to re-register asp.net running on your production server by running this command c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i
Ok, thanks I simply do : System.Web.HttpException httpErreur =(HttpException)Server.GetLastError(); if(!(httpErreur.GetHttpCode()==404)) { } else { } and it works