I have moved one of my Umbraco sites to a new server (Zipped it up backed up the DB etc..) and now I cannot login to the admin on the new site? Its working but cannot get into the admin section :(
Did you change the membership settings? eg from clear to hashed?
You can also check the database table umbracoUsers. if the passwords aren't hashed you can see it there. If they are hashed change the membership settings to clear and change the password in the db. Then when you are logged in change the membership settings back to hashed.
Just to bring this up again - Bit weird but this site had a small restricted membership area, now its completely dead?? I have deleted all the members, Groups & Types. Re-created them, but still get this error when I try to access the restricted area whether I'm logged in or not
Object reference not set to an instance of an object. at System.Web.Security.Membership.GetCurrentUserName() at System.Web.Security.Membership.GetUser() at umbraco.requestHandler..ctor(XmlDocument _umbracoContent, String url) at umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.Page.OnPreInit(EventArgs e) at System.Web.UI.Page.PerformPreInit() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Admin Password? Moved Umbraco Site?
I have moved one of my Umbraco sites to a new server (Zipped it up backed up the DB etc..) and now I cannot login to the admin on the new site? Its working but cannot get into the admin section :(
Any ideas?
Did you change the membership settings? eg from clear to hashed?
You can also check the database table umbracoUsers. if the passwords aren't hashed you can see it there. If they are hashed change the membership settings to clear and change the password in the db. Then when you are logged in change the membership settings back to hashed.
hth, Thomas
Hey Thomas - We do I change the passwords from hashed to clear?
In the web.config. Take a look at the wiki entry: http://our.umbraco.org/wiki/how-tos/membership-providers/umbracomembershipprovider-properties
Thomas
Cool thanks - Did that and got in :)
Just to bring this up again - Bit weird but this site had a small restricted membership area, now its completely dead?? I have deleted all the members, Groups & Types. Re-created them, but still get this error when I try to access the restricted area whether I'm logged in or not
Object reference not set to an instance of an object.
at System.Web.Security.Membership.GetCurrentUserName()
at System.Web.Security.Membership.GetUser()
at umbraco.requestHandler..ctor(XmlDocument _umbracoContent, String url)
at umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e)
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreInit(EventArgs e)
at System.Web.UI.Page.PerformPreInit()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Any ideas?
Anyone :(
For anyone having the same problem, I followed this thread and it solved my problem
http://our.umbraco.org/forum/developers/api-questions/4207-Member-login-won't-work
is working on a reply...