D1IM SOAP Webservice (Q1IMService) fails with exception for subsequent requests when using WebADS. The error message resembles
Safe handle has been closed
at System.StubHelpers.StubHelpers.SafeHandleC2NHelper(Object pThis, IntPtr pCleanupWorkList)
at Microsoft.Win32.Win32Native.GetTokenInformation(SafeTokenHandle TokenHandle, UInt32 TokenInformationClass, SafeLocalAllocHandle TokenInformation, UInt32 TokenInformationLength, UInt32& ReturnLength)
at System.Security.Principal.WindowsIdentity.GetTokenInformation(SafeTokenHandle tokenHandle, TokenInformationClass tokenInformationClass, UInt32& dwLength)
at System.Security.Principal.WindowsIdentity.get_User()
at System.Security.Principal.WindowsIdentity.GetName()
at System.Security.Principal.WindowsIdentity.get_Name()
at VI.DB.Pooling.IdentityData.Equals(Object obj)
at System.Collections.Generic.ObjectEqualityComparer`1.Equals(T x, T y)
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Collections.Generic.Dictionary`2.TryGetValue(TKey key, TValue& value)
at VI.DB.Pooling.ConnectionPool._GetPool(IAuthProps auth, Boolean createIfNotExists)
at VI.DB.Pooling.ConnectionPool.GetConnection(String authString)
at VI.DB.WebService.Q1IMService.GetCompleteSingleObjectEx(String objectType, KeyValuePair[] primaryKeys)