Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Throws ThreadAbortException while saving user group

Vote:
 
I some times (around 3 of 100 registrations fails) gets the exception: System.Threading.ThreadAbortException: Thread was being aborted. at System.String.GetHashCode() at System.Collections.Hashtable.GetHash(Object key) at System.Collections.Hashtable.get_Item(Object key) at System.Data.DataColumnCollection.get_Item(String name) at System.Data.DataRow.get_Item(String columnName) at EPiServer.DataAbstraction.GroupSid.SaveGroupMembership() at EPiServer.DataAbstraction.GroupSid.Save() when trying to run this code: GroupSid groupSid = GroupSid.Load ("XXXGroup"); UserId userId = null; try { UserSid userSid = new UserSid (SecurityIdentityType.ExtranetUser); userSid.Name = name; userSid.Password = password; userSid.Active = true; userSid.Save (); userId = new UserId (userSid.ID); groupSid.GroupMembers.Add (userSid); groupSid.Save (); } catch (Exception ex) { .... } Can someone please give me some ideas on why the Save method throws this exception?
#17576
Oct 19, 2006 12:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.