Restoring a DotNetNuke site

Posted on 2009-02-10
Last Modified: 2012-06-27
The MachineKey of a DotNetNuke website has been lost, which is very bad news for the user login capabilities.  Luckily, this was a development site with only two users, so the downfall is minimal, but I need to get the site back up and running.

I think the only real option since there are no viable backups is to reinstall the site.  However, I'm a bit worried about having to redo a lot of work.  There were some menu items and content items created, which still work fine; as far as a skin goes, I believe it's using one of the default skins.

What would be the suggested course of action to restore the menu and content items after the reinstall?  I'd like to minimize the amount of time required to restore the site and I'm hoping some clever database work can get me back up and running very quickly after the site is re-installed.  I will do the users manually as that is negligible.  

I have very little experience with DotNetNuke's database structure, but I'm very good at working with SQL databases, so if I could get some DotNetNuke-specific assistance, I should be able to work this out nicely.  Thanks in advance for your help.
Question by:dageyra
    LVL 3

    Expert Comment

    DotNetNuke had ability to create a Page Template also for the Portal Templates.
    We usually Export Portal Templates after we working from local host and upload it to live server.
    Here's what we do :
    1. Login as Host, and go to Host>Portals, Click on "Export Portal Templates", Choose which portal, give a name, some description, and don't forget the Check the "Include Content". Copy this two file [template_name].template and [template_name].template.resources (usualy under Portals/_default)
    2. Backup all your Folder Structure under Portals/[PortalID], if you had some picture that use on the Portal.
    3. Remember all Module that had been installed on Portal.

    Time to Upload it
    1. Install all related Module same like your past portal, don't forget the skins.
    2. Upload all files you had backup before. Place it into the portal create. If is new, upload it to Portals/0
    3. Don't forget to Upload the two file Templates you create before, and paste it to Portals/_default
    3. All we need to do last is using the Wizard. Go to Admin>Site Wizard, and now follow it step by step.

    Hope is work.


    LVL 8

    Accepted Solution

    What u can do is reinstall the fresh installation of dotnetnuke( you can do it in your local pc).
    Now you can use the web config file of new one on the old database.   And change some settings on the web.config file to point to the older database.

    Now user authenticaton will not work here since you have different encrypt-decrypt key.

    Little bit trick to create host account here.

    Open the site on browser and create one normal user with Registration form.

    Support you created a user as below

    By doing this there will a new user record on the database table.


    Go the database table and there is one field call IsSuperUser.

    For the user newhost change this field to True.

    Now the user newhost will be treated as Super account (host account).

    If you login with this user all the host permissions will be seen.

    Now you can do whatever u want to do.

    Good luck.

    LVL 8

    Expert Comment

    Option 1
    You could simply choose to store password without encryption (in clear), serch "passwordFormat" in web.config
    change the host password in aspnet_membership table, login in your portal

    Option 2
    Do anothe installation, set host password, copy in your old portal machinkey and systemkey and password and passwordsalt from new aspnet_membership to the old one, login in your old portal.


    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
    In this article, we will look at our content management system as a whole, to get an idea of how we will start to manage these content items.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now