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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationCannot delete usersCannot delete users
Previous
 
Next
New Post
6/30/2006 9:39 AM
 

Similar problem with fresh install of 4.3.1. Get the following error when using SQL 2000 and SQL 2005.  The user is deleted from the [Users] table, but not from any of the aspnet tables.

System.Web.HttpException was caught
  ErrorCode=-2147467259
  Message="Unable to connect to SQL Server database."
  Source="System.Web"
  StackTrace:
       at System.Web.DataAccess.SqlConnectionHelper.CreateMdfFile(String fullFileName, String dataDir, String connectionString)
       at System.Web.DataAccess.SqlConnectionHelper.EnsureSqlExpressDBFile(String connectionString)
       at System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation)
       at System.Web.Profile.SqlProfileProvider.DeleteProfiles(String[] usernames)
       at System.Web.Profile.ProfileManager.DeleteProfile(String username)
       at DotNetNuke.Security.Membership.AspNetMembershipProvider.DeleteMembershipUser(UserInfo user) in C:\dotnetnuke\Library\Providers\MembershipProviders\AspNetMembershipProvider\AspNetMembershipProvider.vb:line 174 

 
New Post
5/23/2007 9:19 AM
 

p_romerov wrote

I think it's a DNN mistake ... I used this SQL Script:

DECLARE @VUserID VARCHAR(512)

SELECT @VUserID = UserId FROM ASPNET_USERS WHERE UserName = 'promero'
DELETE FROM ASPNET_USERSINROLES WHERE UserId = @VUserID
DELETE FROM ASPNET_MEMBERSHIP WHERE UserId = @VUserID
DELETE FROM ASPNET_PROFILE WHERE UserId = @VUserID

DECLARE @IUserID INT

SELECT @IUserID = UserID FROM DNN4_USERS WHERE UserName = 'promero'
DELETE FROM DNN4_USERPORTALS WHERE UserId = @IUserID
DELETE FROM DNN4_USERROLES WHERE UserId = @IUserID
DELETE FROM DNN4_USERSONLINE WHERE UserId = @IUserID
DELETE FROM DNN4_PROFILE WHERE UserId = @IUserID

Pavel Romero

 

 

 

What a cool script, I tried this, and it seemed to work.
Can anyone (from the core perhaps) confirm that this is ascript which you can use without any side effects....

 
New Post
6/21/2007 8:57 AM
 

rdelcorro wrote

Hi,

I have the same exception, but i´m trying to configure the AD authentication: (HELP!!)

AssemblyVersion: 04.05.01
PortalID: 0
PortalName: ****************
UserID: 2
UserName: admin
ActiveTabID: 53
ActiveTabName: Authentication
RawURL: /intranet/Admin/Authentication/tabid/53/Default.aspx
AbsoluteURL: /Intranet/Default.aspx
AbsoluteURLReferrer: http://localhost/intranet/Admin/Authentication/tabid/53/Default.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 0393fdc5-baa2-4240-b15b-906c93229e55
InnerException: The specified domain either does not exist or could not be contacted.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.DirectoryServices.DirectoryEntry.Bind
StackTrace:
Message: System.Runtime.InteropServices.COMException (0x8007054B): The specified domain either does not exist or could not be contacted. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.PropertyValueCollection.PopulateList() at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName) at System.DirectoryServices.PropertyCollection.get_Item(String propertyName) at DotNetNuke.Security.Authentication.ADSI.Utilities.GetRootForestPath(Path ADSIPath)
Source:
Server Name: ************

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationCannot delete usersCannot delete users


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