Global.asax not firing

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,
 
G

Guest

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?
 
E

Eric Layman

----- Original Message -----
From: "Anon User" <>
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.
 
G

Guest

----- Original Message -----
From: "Anon User" <[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.


----------------------------------------------------------

----------------------------------------------------------
http://www.usenet.com- Hide quoted text -

- Show quoted text -

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.
 
E

Eric Layman

Anon User said:
----- Original Message -----
From: "Anon User" <[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
 
J

Juan T. Llibre

Do you have the .Net Framework 1.1 installed ?




Eric Layman said:
Anon User said:
----- Original Message -----
From: "Anon User" <[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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top