Sérgio Rodelo [mailto:[EMAIL PROTECTED]] wrote:

> How can I use the following class: ?
> 
> Server.GetLastError  " Server is an intrinsic object of the 
> class System.Web.HttpServerUtility "
> 
> Everytime I try to use this class I end up with Nothing 
> returned by the class.

When are you "using" it? GetLastError will only return an exception if the
error was raised out to the scope of the current HttpContext. GetLastError
is meant to be used by handlers further down in the call chain that are
doing some form of generic error handling. If you need error checking within
the scope of your handler, probably a Page instance, you should be using
your language's SEH syntax.

HTH,
Drew

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to