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...Login causing error after moving site to live serverLogin causing error after moving site to live server
Previous
 
Next
New Post
2/12/2006 9:08 AM
 

Okay, this is driving me nutz

I had set up a major upgrade of a site from v3.2 to v4.0.2. Everything was working great on my local machine, so I detached the SQL2K database and re-attached it on my live server.  I copied up the code as well and recompiled it just to be on the safe side.  Now, anytime I try and log in I get a critical error (object reference not set to an instance of an object.).  I can't seem to register any new users either.

The error occurs within the signin.ascx.vb when trying to dim an new objAuthentication object and appears to fail on the AuthenticationController.

Stack Trace:
   at DotNetNuke.Security.Authentication.Configuration.get_DefaultEmailDomain()
   at DotNetNuke.Security.Authentication.Configuration..ctor()
   at DotNetNuke.Security.Authentication.Configuration.GetConfig()
   at DotNetNuke.Security.Authentication.AuthenticationController..ctor()
   at DotNetNuke.Modules.Admin.Security.Signin.cmdLogin_Click(Object sender, EventArgs e) in F:\Anoka\Website\admin\Security\Signin.ascx.vb:line 170
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Can someone please give me a hand with this... I'm sorta under the gun to get this up and running.

Thanks ahead of time,
Jordy

 
New Post
2/12/2006 3:45 PM
 

Figured it out.  It was a 'doh' move on my part.  I thought I could change the username of my host and admin to something else in the Users table and that jus' ain't da case.  Changing the usernames back to what they were originally fixed the problem..

Jordy

 
New Post
2/13/2006 6:47 PM
 

I like folks who are conscientious enough to come back and follow-up on their posts... especially when they're "doh" moments... *grin*

Hope this is helpful to you ( note it presumes forums is installed... you can remove that bit if necessary ).


DECLARE @OldUsername varchar(50)
 DECLARE @NewUsername varchar(50)
 SET @OldUsername='<old name>'
 SET @NewUsername='<new name>'

BEGIN TRAN
 update aspnet_users
 set
UserName=@NewUsername, LoweredUsername=lower(@NewUsername)
 where lower(UserName)=lower(@OldUsername)
 IF @@ROWCOUNT=0
  PRINT 'User ' + @OldUsername + ' not found in aspnet_users table.'
 ELSE
  PRINT 'User ' + @OldUsername + ' changed to ' + @NewUsername + ' in aspnet_users table.'
 update users
 set
Username=@NewUsername
 where lower(UserName)=lower(@OldUsername)
 IF @@ROWCOUNT=0
  PRINT 'User ' + @OldUsername + ' not found in users table.'
 ELSE
  PRINT 'User ' + @OldUsername + ' changed to ' + @NewUsername + ' in users table.'
 update forum_users
 set
alias=@NewUsername
 where lower(alias)=lower(@OldUsername)
 IF @@ROWCOUNT=0
  PRINT 'User ' + @OldUsername + ' not found in forum_users table.'
 ELSE
  PRINT 'User ' + @OldUsername + ' changed to ' + @NewUsername + ' in forum_users table.'
If @@ERROR=0
 BEGIN
  COMMIT TRAN
  PRINT 'username change committed'
 END
ELSE
 BEGIN
  ROLLBACK TRAN
  PRINT 'username change rolled back'
 END
GO


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Login causing error after moving site to live serverLogin causing error after moving site to live server


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