asp.net - Application_error event not firing after publishing -
i know has been asked lot of times, not things working posts.
i have implemented application_error method in global.asax file log , send email unhandled exceptions. works fine when running on visual studio, publish test server, application_event stops firing. no log entry made text file , no email sent.
precompiledapp.config file present in root directory, along app_global.asax.compiled, app_global.asax.dll in bin folder. global.asax file not present after publish website.
i have tried removing precompiledapp.config file, doesn't work. have tried adding global.asax file root directory, doesn't work. have tried
<customerrors mode="off" />
and
<customerrors mode="on" defaultredirect="error page.aspx" />
in web.config file....nothing works.
i added line page_load of page:
response.write("<br/>applicationinstance: " + context.applicationinstance.gettype().fullname);
it returns applicationinstance: asp.global_asax, should returned according post. why event not firing?
please help!!!
thanks!!!
**[edit] .... added line of code in session_start event of global.asax file , worked. means global.asax getting deployed successfully. why application_error event not getting executed in case of error? ideas?
if application encounter within application_error method, not throw make method not being invoke.
i check make sure have adequate exception handling within application_error method.
Comments
Post a Comment