Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Error: Error Deleting UserError: Error Deleting User
Previous
 
Next
New Post
11/11/2006 12:46 PM
 

DNN 3.3.5

I'm trying to delete users. On the User Accounts page when I click on the red X for the user I want to delete I get an message "Error Deleting User" and the user remains. There is no entry made in the log file and no more detail provided.

If I have a list of unauthorized users and I try to delete those using the "Delete Unauthorized Users" menu selection I do not get any message and the users I wanted to delete are not deleted.

Anyone have any suggestions or ideas?

Thanks

John

 
New Post
11/17/2006 3:28 PM
 

The cause of the problem was a missing or corrupt resource file. (GlobalResources.resx)

For some reason when I FTPd the 3.3.5 upgrade to my ISP some files including the one in question were truncated to 0 bytes in length. When I tried to delete a user the system tried to send an email message with a subject line pulled from the GlobalResources file. Since the file was empty the string was null which caused an error in the sendmail process.

Placing a new copy out on my site cured the problem.

John

 
New Post
10/7/2008 4:55 PM
 

I have the same problem, but i have a  solution maybe this could help you.  You can alter the existing stored procedure[DeleteUser].

 

ALTER procedure [dbo].[DeleteUser]
 
@UserId   int
 
as
declare @username as nvarchar(50)
declare @unique_userid as uniqueidentifier

delete from dbo.userroles where userid=@UserId
delete from dbo.ModulePermission  where userid=@UserId
delete from dbo.TabPermission where userid=@UserId


--remove orphan user
select @username=username from Users  where UserId = @UserId
select @unique_userid=userid from  dbo.aspnet_Users where userName=@username
delete from  dbo.aspnet_Membership  where userid=@unique_userid
delete from  dbo.aspnet_Users  where userid=@unique_userid


delete  from dbo.Users  where  UserId = @UserId 

 
New Post
9/1/2013 5:13 AM
 
Hi
I have same Problem in Dnn 5.4.2 and I tested the above solution but it does not work.
 
New Post
9/1/2013 9:25 AM
 

you might be using non-default database owner or object qualifier. Please execute the following script inside Host > SQL with "run as script" checked:

 

ALTER PROCEDURE {databaseOwner}[{objectQualifier}DeleteUser] 
 @UserId   int
AS
BEGIN
 DECLARE @username as nvarchar(50)
 DECLARE @aspnet_userid as uniqueidentifier

 DELETE FROM {databaseOwner}[{objectQualifier}userroles]     WHERE UserID = @UserId
 DELETE FROM {databaseOwner}[{objectQualifier}ModulePermission]    WHERE UserID = @UserId
 DELETE FROM {databaseOwner}[{objectQualifier}TabPermission]    WHERE UserID = @UserId
 DELETE FROM {databaseOwner}[{objectQualifier}DesktopModulePermission]  WHERE UserID = @UserId

 --remove orphan user
 SELECT @username      = UserName FROM {databaseOwner}[{objectQualifier}Users] WHERE UserID = @UserId
 SELECT @aspnet_userid = userid   FROM  {databaseOwner}aspnet_Users      WHERE userName = @username
 DELETE FROM {databaseOwner}aspnet_Membership   WHERE userid = @aspnet_userid
 DELETE FROM {databaseOwner}aspnet_Users        WHERE userid = @aspnet_userid
 DELETE FROM {databaseOwner}[{objectQualifier}Users] WHERE UserId = @UserId 
END

GO

 

IF this doesn't help, there might be 3rd party modules, which placed a foreign key on users table and contain records with userid  (e.g. for owner or lastEditedBy)


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Error: Error Deleting UserError: Error Deleting User


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out