16 Jan 2014
Link to this post
We are doing some custom user addition through an automated process. Basically users get pushed to a database, and then we load them into Sitefinity when we get notified programmatically. Inside this process, we are implementing code that matches with this: http://docs.sitefinity.com/for-developers-create-user-profiles and http://docs.sitefinity.com/for-developers-users-and-roles#add-user-to-roles. Occasionally, we encounter this error during the process: A transport-level error has occurred when receiving results from the server. (provider: Session Provider, error: 19 - Physical connection is not usable). Now this doesn't happen all the time, but it seems to be related to retained connection threads in the Manager classes. How do we properly dispose of these? I don't see anything in the referenced examples about how to close the connections within the Managers when we are done? Do we just need to destroy our local objects?