To remove user (Just as the answer posted in this issue).
However, this works fine. But for one user it gives an error. The exception throws from the RemoveUser(IUser user).
The exception details are here as below,
System.ArgumentNullException: The type cannot be null. Parameter name: type
at EPiServer.Data.Entity.Internal.EntityTypeResolver.GetTypeName(Type type, Boolean ignoreOverrideAttribute)
at EPiServer.Common.ImplementationModule.HandleCommentAddUpdateRemove(IComment comment, SupportedOperations operation)
at EPiServer.Common.Comments.CommentHandler.OnCommentUpdated(IComment comment)
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass32_0.b__0()
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass33_0`1.b__0()
at EPiServer.Common.Comments.CommentHandler.UpdateComment(IComment comment)
at EPiServer.Common.Data.FrameworkFactoryBase.CascadeUpdateStatus(IEntityStatus entity, ICollection`1 children)
at EPiServer.Common.Data.CommentFactory.CascadeAuthorStatus(IAuthor author)
at EPiServer.Common.AuthorEventHandler.Invoke(EntityEventArgs args)
at EPiServer.Common.AuthorHandler.OnAuthorUpdated(IAuthor author)
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass32_0.b__0()
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass33_0`1.b__0()
at EPiServer.Common.AuthorHandler.UpdateAuthor(IAuthor author)
at EPiServer.Common.Data.FrameworkFactoryBase.CascadeUpdateStatus(IEntityStatus entity, ICollection`1 children)
at EPiServer.Common.Security.Data.SecurityFactory.<>c__DisplayClass57_0.b__0()
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass32_0.b__0()
at EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass33_0`1.b__0()
at EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)
at EPiServer.Common.Security.SecurityHandler.RemoveUser(IUser user)
I have decompiled the 'EPiServer.Common.ImplementationModule' and this is what the 'HandleCommentAddUpdateRemove(..)' has.
To remove user (Just as the answer posted in this issue).
However, this works fine. But for one user it gives an error. The exception throws from the
RemoveUser(IUser user)
.The exception details are here as below,
I have decompiled the 'EPiServer.Common.ImplementationModule' and this is what the 'HandleCommentAddUpdateRemove(..)' has.
What causes this to happen ?
It seems like the below code returns 'Null'
commentedEntity.get_Type();
Any way to delete this user?
Additional info: