Hi there,
I have a webservice for file uploads&downloads that implements sessions to transfer large files. I defined the webmethod with [WebMethod(EnableSession=true)] and web.config Session Timeout to 2 minutes. I don’t know why, but the global.asa Session_End event is not triggered and neither is Application_Error.
Is there any thing I have to setup How can I configure the application to fire the global.asa events
I need to have those events fired to cleanup the lost sessions temp files, created for trasfering the client files.
TIA

WebService - Sessions & Timeouts
Aurora-r
Hello,
I think your question is more generally related to ASP.NET than ASP.NET Web Services. I recommend posting to the ASP.NET web forums at:
http://forums.asp.net
Daniel Roth
Maximilian Haru Raditya
Daniel,
I think your post is quite misleading. This question is very specific to webservices in that the reason the Application_Error event is not called is because webservices serialise any exceptions before the Application_Error event is fired.
To fix this problem you need to create a soapextension which parses through the Soap Messages.
MSDN article describing how to do this is here: http://msdn2.microsoft.com/en-us/library/ds492xtk.aspx
'A Web application can be comprised of multiple Web services. However, the Application_Error event within the Global.asax Syntax file cannot be used for global exception handling. The HttpHandler for Web services consumes any exception that occurs while a Web service is executing and turns it into a SOAP fault before the Application_Error event is called. Build a SOAP extension to process Web service exceptions in a global exception handler. A SOAP extension can check for the existence of an exception in the ProcessMessage method. Within the ProcessMessage method, check the Exception property of the SoapMessage passed when the Stage property is set to AfterSerialize. For details on SOAP extensions, see SOAP Message Modification Using SOAP Extensions.'
AussieGuy