You need to Register for free and Login to post a message in the forum.

Forum

Can not login as host or admin after live database restoration
Last Post 2009-11-02 12:18 PM by proarch123. 5 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
KimchiUser is Offline
Nuke Newbie
Nuke Newbie
Posts:7

--
2007-11-29 08:29 PM
    Hi, all.

    What would be the problem if I can not login as host or admin after live hoster restored my locally generated database file?
    There is no possibility that I lose the passwords for the host and admin because I use the same name and password combination all the time.
    My localhost works just fine, but I have difficulty uploading to a live host; I guess the hoster do not seem to have DNN support or exprerience.

    Does it have to do "setup permission" thing after database restore request?
    I just asked them to restore my locally generated database backup file.

    Thank you.

    Kimchi
    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9299
    Avatar

    --
    2007-11-30 01:10 AM
    Are you having trouble logging into the DotNetNuke site, or are you having trouble logging into the database as a database user?

    If everything is working fine, but you can't log in as host or admin to the DotNetNuke site, did you make any changes to your web.config file? Your web.config file must have the same machineKey setting as when you created the database. If they are different (compare the web.config file on localhost with the remote one) you must change your remote web.config to match the local one.

    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    KimchiUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:7

    --
    2007-11-30 04:24 AM
    jncraig,

    Thank you for your response. To describe what is happening with my hosting service, here is the sequence that I followed.

    (1) Downloaded DNN 4.5.5 and followed wizard to install onto my localhost running MS SQL Server 2005 Express. It works fine in everything. The host and admin let me log in and just fine.
    (2) I made a backup flie after I attached the App_Data\Database.mdf file. The backup default name is Database.mdf.BAK.
    (3) After I changed local web.config I was able to login back to my localhost. That means I now direct the DNN to use the MS SQL Server 2005 Express. See my attachment at the end of this posting for my local web.config file's ConnectionString part.
    (4) I created a datbase file for a hoster's remote MS SQL Server 2005. Of course I have created Login user for the server and assigned roles (asp_net.* and db_owner). Again the uid and pwd in the ConnectionString is appended at the end for your reference.
    (5) After I uploaded the DNN 455 installation files and the backup file, I request a restoration service for my database backup file. They said "It is complete," which, I guess they mean they restored my backup file to my remote, hoster's SQL Server 2005.

    Now, when I login to the hoster (http://www.woogonchung.net) the home page comes up. BUT, THE PROBLEM is that I can NOT login as host or admin. Again, trust me. I know my passwords for the host and admin account, because I use them all the time.

    Below I have appened two web.config files; the first for the localhost version of my computer and the second is for the remote, live host version.

    I will appreciate your help on this long-lasting trouble.

    (Note: I blocked the password part of my web.config file with xxxxxxxxx .)




    --------------- localhost, web.config ------------------


        <!-- Connection String for SQL Server 2005 Express -->
       
        <!-- Connection String for SQL Server 2000/2005
              name="SiteSqlServer"
          connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
          providerName="System.Data.SqlClient" />
       -->
     

     
        <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules   -->
       
        <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules
       
        -->


    ----------- remote, live host; web.config  ----------------------

     
        <!-- Connection String for SQL Server 2005 Express
              name="SiteSqlServer"
          connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"
          providerName="System.Data.SqlClient" />
        -->
        <!-- Connection String for SQL Server 2000/2005 -->
              name="SiteSqlServer"
          connectionString="Server=67.36.254.131;Database=woogonchung_dnndb2;uid=dnndbuser2;pwd=xxxxxxxx;"/>
     
     

     
        <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules  
       
        -->
        <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules -->
       

    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9299
    Avatar

    --
    2007-11-30 01:37 PM
    The web.config files didn't post correctly because of the < and > in all of the tags.

    You need to check the machineKey setting in each of the two web.config files. They should be the same. Having the wrong machineKey setting is the most common reason that you can't log in. Do you get a message that the password is wrong when you try to login?

    The fact that your site is running on the host system indicates that the connection strings are correct.

    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    KimchiUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:7

    --
    2007-11-30 11:40 PM
    I made it. Thank you for your info. The machineKey values and their persistancy have been mentioned in the Video turorial series, though.

    Kimchi

    proarch123User is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:4

    --
    2009-11-02 12:18 PM
    Hi,
    Thanks alot it solved my problem.

    Me also hosted my published files on intranet server. After hosting everything is woring fine except DNN login.
    After copting the same machinekey which I used for development version it worked

    Thanks,
    ProArch.
    You are not authorized to post a reply.


    Active Forums 4.3

    Latest Forum Posts

    Rename or move site from domain name to subdomain name by Bill Quinn
    Hi, I have an old DNN site on a a TLD like this: websitename.com I have created a portal on
    RE: Deploying dnn by Sameer
    Thanks joeseph glad with your answer it means i can use CE for my site if the traffic are not
    Unable to Create Skin Package by schilders
    Hi, I'm trying to create the skin package and manifest for my new skin. I created the new skin e
    RE: user adding images by Joseph Craig
    I think that you will need to go to the File Manager and give the user and/or security group file up
    RE: lightroom effect for skin by Joseph Craig
    There are modules available that do this. On the commercial side, I've used Mandeeps' Live Conten
    RE: Creating structured page content by Joseph Craig
    Take a look at Ventrian's News Articles module. While commercial, it has a very modest price! Th
    Creating structured page content by Stephen Bugden
    Hi, Can anyone recommend a module for creating and managing page content? The kind of thing I'
    lightroom effect for skin by everett31
    I’m looking for a way to add the lightbox effect to a skin file. I would like the end user to have
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by WinXnet
    According to my web searching, @font-face references cause crashing in IE7 and IE8 with css3-mediaqu
    user adding images by rod lloyd
    I have set up permissions for certain users to edit a module, but when they log-on and enter Edit Co
    RE: Deploying dnn by Joseph Craig
    The free Community Edition of DotNetNuke is perfectly fine for creating "world class" websites. Whi
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by WinXnet
    any idea what approach I should take - IE completely locks up. The only cause is the combo of the
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by Joseph Craig
    If you're up to doing some debugging, you might be able to figure out where the problem lies. That'
    RE: Deploying dnn by Sameer
    Hi Joe Thanks for your reply i am planning to create my own DNN site so for that i have chec
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by WinXnet
    Thanks for the response, but I was hoping it was something I could fix with some skin tweaks - one i
    RE: Changing Search text by Joseph Craig
    You will want to look here for references about the DotNetNuke skin objects. The document written b
    Changing Search text by Abraham Tameru
    Hi, Instead of having "Search" text near the search text box, I wanted to replace it by an image
    RE: Strange issue with file manager on sub domain (sperate portal) by Web Services
    Just sent it.
    RE: Not able to load my dotnetnuke website on Internet Explorer though it is working fine with other browsers by Joseph Craig
    Did you get this fixed? (Apologies for not getting to this sooner...)
    RE: Web Design Company London by Johnny Gregory
    Hello I am a Manager here at PowerDNN and I would like to see if you are still looking to get the wo
    You are not logged in.
    You must log in to access all 
    650+ videos, tutorials, podcasts, and more.
    RSS Feeds