HighTechTalks DotNet Forums  

Global.asax

Dotnet FAQs microsoft.public.dotnet.faqs


Discuss Global.asax in the Dotnet FAQs forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Gomathi
 
Posts: n/a

Default Global.asax - 11-30-2005 , 04:54 AM






hi all,

I want to send mail during my application crashes.
I wrote my method in application_end event in global.asax.
Its working fine when i'm running through visualstudio.net.
When i tried by stopping my IIS server, it doesnt work.
Where i have to write my method to get fire when my application get crashes?

Thanks in advance.

Regards,
Gomathi



Reply With Quote
  #2  
Old   
Scott M.
 
Posts: n/a

Default Re: Global.asax - 11-30-2005 , 09:47 AM






If the application crashes, how could it process your code?

Application_End won't run at all if the application crashes unexpectedly.
Instead, you should put all tenuous code in Try...End Try blocks and you can
send your email in the Catch sections (or call a routine that sends the
email from the Catch blocks).




"Gomathi" <gomathi (AT) celtycs-consulting (DOT) com> wrote

Quote:
hi all,

I want to send mail during my application crashes.
I wrote my method in application_end event in global.asax.
Its working fine when i'm running through visualstudio.net.
When i tried by stopping my IIS server, it doesnt work.
Where i have to write my method to get fire when my application get
crashes?

Thanks in advance.

Regards,
Gomathi




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.