2

When the user closes the browser that hosts my Silverlight 2 Application I need to call a web service that would log the user out. I am aware of the Application_Exit event, however when I call my service in that event nothing happens. I presume that the connection to my service is already closed by then.

Is there another event that I should use?

Please help.

1
  • A little more context would be helpful. What exactly happens when the user 'logs out' over the web service? Apr 28, 2009 at 20:59

1 Answer 1

2

Don't do it. Calling a service at application exit is not supported by Silverlight. You need the service to clean itself up, possibly with the application telling the service every few minutes/hours as appropriate tto delay the cleanup. Link to Silverlight Forums and the same question

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.