Hi! I has the same problem. I resolved to change the code from Application_Error to specialized class to catch the exception to eventlog. So, OnAsyncPostBackError of ScriptManager calls the same specialized class too.
the OnAsyncPostBackError event doesn't even fire i don't know what to do !!
The Application_Error works mainly when you replace your page - i.e when you actually
submit form and waits for the whole page to return (not an AJAX call)
If your application_error deals only with AJAX calls you shold throw your own exception to the client
and deal with it in your cient error handler. (Use window.location instead of redirect from the server)
Otherwise - throw yor own exception from the web method and deal with it on your error handler.
well that's cool i've thought of that although i think it's messy i still want to know what's wrong with OnAsyncPostBackError
I don′t use WebServices as you, but my event is fire (My using is very simple with UpdatePanel). I has been problem in Application_Error event, when I has setting the page error in web.config. In case, the HealthMonitoring dont′t was fired. Try remove any configuration of page error of WebConfig.
Hi bo2bo2,
Based on your description, I think the exact root cause is "OnAsyncPostBackError" running on server side and ajax calling web service on client side independently. So you should catch the errors that occurred while visiting webservice on client .Here is an useful url: http://ajax.asp.net/docs/mref/E_System_Web_UI_ScriptManager_AsyncPostBackError.aspx Hope it helps. If I misunderstood you, please let me know.
No comments:
Post a Comment