PC Review


Reply
Thread Tools Rate Thread

Determining Cause of Errors in VB.NET WEB Application

 
 
Fred Nelson
Guest
Posts: n/a
 
      10th Dec 2003
I'm devloping a Web Application in VB.NET. In my web.config file I have
specified that untrapped errors are to be sent to the page "errorpage.aspx".
This is working fine - if an untrapped error occurs the application is
indeed routed to this page.

On this page I would like to determine the cause of the error and either log
it in a file or send it to me via e-mail.

I am able to determine the page that sent me there from the URL parameter
"aspxerrorpath" - I would also like to be able to determine what went
wrong - or at least a line number where the failure occured.

I have the following code that I have seen in a vb.net web programming book:

dim appException as system.exception = server.getlasterror

This always returns a NULL value - no help at all!

Does anyone know how to determine the cause of an error when you have been
routed to the error page specified in the web.config file? I hope that its
possible to determine more than just the page that caused the error.

Your help would be greatly appreciated!

Fred


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      10th Dec 2003
* "Fred Nelson" <(E-Mail Removed)> scripsit:
> I'm devloping a Web Application in VB.NET. In my web.config file I have
> specified that untrapped errors are to be sent to the page "errorpage.aspx".
> This is working fine - if an untrapped error occurs the application is
> indeed routed to this page.
>
> On this page I would like to determine the cause of the error and either log
> it in a file or send it to me via e-mail.


You may want to ask this question in the ASP.NET group:

<news://msnews.microsoft.com/microsoft.public.dotnet.framework.aspnet>

Web interface:

<http://msdn.microsoft.com/newsgroups/default.asp?url=/newsgroups/loadframes.asp?icp=msdn&slcid=us&newsgroup=microsoft.public.dotnet.framework.aspnet>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
 
Reply With Quote
 
Fred Nelson
Guest
Posts: n/a
 
      10th Dec 2003
Herfried:

Thanks - I did get a response that may solve my issue from that group!

Fred


"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:br6pej$29emkb$(E-Mail Removed)...
> * "Fred Nelson" <(E-Mail Removed)> scripsit:
> > I'm devloping a Web Application in VB.NET. In my web.config file I have
> > specified that untrapped errors are to be sent to the page

"errorpage.aspx".
> > This is working fine - if an untrapped error occurs the application is
> > indeed routed to this page.
> >
> > On this page I would like to determine the cause of the error and either

log
> > it in a file or send it to me via e-mail.

>
> You may want to ask this question in the ASP.NET group:
>
> <news://msnews.microsoft.com/microsoft.public.dotnet.framework.aspnet>
>
> Web interface:
>
>

<http://msdn.microsoft.com/newsgroups...ups/loadframes
..asp?icp=msdn&slcid=us&newsgroup=microsoft.public.dotnet.framework.aspnet>
>
> --
> Herfried K. Wagner [MVP]
> <http://www.mvps.org/dotnet>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Determining How Many Instances of an Application are Active Carlton Microsoft Access VBA Modules 6 12th Jan 2008 04:28 AM
Determining Cause of Errors in VB.NET WEB Application daniel Microsoft ASP .NET 1 23rd Jan 2005 05:52 PM
Determining an active application =?Utf-8?B?Q2hhcmxlcyBUYW0=?= Microsoft Access Form Coding 3 18th Nov 2004 11:40 AM
Determining which form comes up first when web application is run Google Jenny Microsoft Dot NET 1 17th Aug 2004 05:35 AM
Determining that the Application want to quit from within a thread ozbear Microsoft Dot NET Framework 7 1st Jun 2004 10:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:51 AM.