Global.asax not firing

  • Thread starter Thread starter Eric Layman
  • Start date Start date
E

Eric Layman

Hi everyone,

Currently Im using Global.asax.vb to capture any errors and to send them via email to me.

But I didn't get any emails when I purposely crash the web application.

May I know what I am missing here?

I've copied (shamelessly) the script from here:
http://easerve.com/developer/tutorials/asp-net-tutorials-global-error-handling.aspx
(I changed the email address of course)

And my web.config's customerror mode is set to "Off"

Do I need any special config on my IIS?

Please advise

Regards,
 
Hi everyone,

Currently Im using Global.asax.vb to capture any errors and to send them via email to me.

But I didn't get any emails when I purposely crash the web application.

May I know what I am missing here?

I've copied (shamelessly) the script from here:http://easerve.com/developer/tutorials/asp-net-tutorials-global-error...
(I changed the email address of course)

And my web.config's customerror mode is set to "Off"

Do I need any special config on my IIS?

Please advise

Regards,

Are you sure that this
SmtpMail.SmtpServer = "localhost"

is right for you?

Did you tried to send any "normal" email from your application?
 
----- Original Message -----
From: "Alexey Smirnov" <[email protected]>
Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Tuesday, April 24, 2007 15:38
Subject: Re: Global.asax not firing

Are you sure that this


is right for you?

Did you tried to send any "normal" email from your application?

Yes. I tried to send normal mail and it works fine.

I've removed the line SmtpMail.SmtpServer = "localhost"

The other script that sends email also uses something similiar as above.
 
----- Original Message -----
From: "Alexey Smirnov" <[email protected]>

Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Tuesday, April 24, 2007 15:38
Subject: Re: Global.asax not firing





Yes. I tried to send normal mail and it works fine.

I've removed the line SmtpMail.SmtpServer = "localhost"

The other script that sends email also uses something similiar as above.

Well, look at the following thread:
http://groups.google.com/group/micr....aspnet/browse_thread/thread/659f924128c87d90

If it doesn't help, try to debug your code to understand where the
problem is - 1) global.asax doesn't work 2) Application_Error not
fired 3) etc.
 
Alexey Smirnov said:
----- Original Message -----
From: "Alexey Smirnov" <[email protected]>

Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Tuesday, April 24, 2007 15:38
Subject: Re: Global.asax not firing
On Apr 24, 9:01 am, "Eric Layman" <namyalcire[at no spam]gmail.com>
wrote:
Hi everyone,
Currently Im using Global.asax.vb to capture any errors and to send
them
via email to me.
But I didn't get any emails when I purposely crash the web
application.
May I know what I am missing here?
I've copied (shamelessly) the script from
here:http://easerve.com/developer/tutorials/asp-net-tutorials-global-error...
(I changed the email address of course)
And my web.config's customerror mode is set to "Off"
Do I need any special config on my IIS?
Please advise

Are you sure that this
SmtpMail.SmtpServer = "localhost"
is right for you?
Did you tried to send any "normal" email from your application?

Yes. I tried to send normal mail and it works fine.

I've removed the line SmtpMail.SmtpServer = "localhost"

The other script that sends email also uses something similiar as above.

Well, look at the following thread:
http://groups.google.com/group/micr....aspnet/browse_thread/thread/659f924128c87d90

If it doesn't help, try to debug your code to understand where the
problem is - 1) global.asax doesn't work 2) Application_Error not
fired 3) etc.

Thanks.

I've tried another way to script the asax file .But I got this following
error from visual studio's (visual web developer 2005 express edition)
intellesense:

"Asp.net runtime error: there is no build provider registered for the
extension .asax. you can register one in the <compilation><buildproviders>
section in machine.config or web.config. make sure is has a
BuildProviderAppliesToAttribute which inclues the value 'web' or 'all'"

What does that means?

Btw, when I do aspx projects, i simply write from scratch. I don't build a
solution nor project from scratch. Does it matters?

I come from traditional asp background. Still adapting..

Regards
 
Do you have the .Net Framework 1.1 installed ?



Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
Eric Layman said:
Alexey Smirnov said:
----- Original Message -----
From: "Alexey Smirnov" <[email protected]>

Newsgroups: microsoft.public.dotnet.framework.aspnet
Sent: Tuesday, April 24, 2007 15:38
Subject: Re: Global.asax not firing

On Apr 24, 9:01 am, "Eric Layman" <namyalcire[at no spam]gmail.com>
wrote:
Hi everyone,

Currently Im using Global.asax.vb to capture any errors and to send them
via email to me.

But I didn't get any emails when I purposely crash the web application.

May I know what I am missing here?

I've copied (shamelessly) the script from
here:http://easerve.com/developer/tutorials/asp-net-tutorials-global-error...
(I changed the email address of course)

And my web.config's customerror mode is set to "Off"

Do I need any special config on my IIS?

Please advise

Regards,

Are you sure that this

SmtpMail.SmtpServer = "localhost"

is right for you?

Did you tried to send any "normal" email from your application?

Yes. I tried to send normal mail and it works fine.

I've removed the line SmtpMail.SmtpServer = "localhost"

The other script that sends email also uses something similiar as above.

Well, look at the following thread:
http://groups.google.com/group/micr....aspnet/browse_thread/thread/659f924128c87d90

If it doesn't help, try to debug your code to understand where the
problem is - 1) global.asax doesn't work 2) Application_Error not
fired 3) etc.

Thanks.

I've tried another way to script the asax file .But I got this following error from visual
studio's (visual web developer 2005 express edition) intellesense:

"Asp.net runtime error: there is no build provider registered for the extension .asax. you can
register one in the <compilation><buildproviders> section in machine.config or web.config. make
sure is has a BuildProviderAppliesToAttribute which inclues the value 'web' or 'all'"

What does that means?

Btw, when I do aspx projects, i simply write from scratch. I don't build a solution nor project
from scratch. Does it matters?

I come from traditional asp background. Still adapting..

Regards
 
Back
Top