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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 7 Install - Site Settings brokenDNN 7 Install - Site Settings broken
Previous
 
Next
New Post
3/5/2013 12:10 PM
 

I have a DNN site that is incredibly ancient, the current version being DNN 6.2.1, but the site itself has been around since DNN 3 was around. Pretty much every time we go to upgrade it, there's been some sort of error, and when I went to upgrade to DNN 7, there was no exception, so I decided to just do a completely fresh install, and then move over all our user data, along with any modules still in use. The install went off without a hitch, but once I started migrating user data, I ran into problems. 

I took down the site in IIS, temporarily disabled foreign keys, and then migrated over the aspnet tables, User tables, and Role tables using SQL server's import data wizard (enabling insert identity). The new install had only one portal, so I pointed the portal ID's for all relevant entries, and re-enabled foreign keys. No errors, so I figured everything was good, copied the previous host password to the new host account, changed the machine key in the web.config file, and brought the site back up. Logged in and everything seemed to work, logged in with the host no problem, and started testing out other user accounts. The first thing I noticed was that the admin accounts didn't seem to have the proper permissions, they couldn't edit or see admin only pages. I figured maybe I just needed to set the admin role in site settings, but when I went to the page, I got this error: A critical error has occurred. Object reference not set to an instance of an object.

I haven't installed any custom modules yet, so the only possible cause could be the data migration, that maybe I didn't transfer all the tables that I needed to, or I forget to tweak a setting somewhere in the database and it's causing the site settings not to load. Does anyone know all of the tables that need to be moved when migrating users, or have any idea where the issue might be? Any help would be much appreciated, been banging my head against the wall on this issue for a while.

Also, this is the full error from the event viewer:

AssemblyVersion: 7.0.3

PortalID: 0

PortalName: DNN7 Test site

UserID: 1

UserName: host

ActiveTabID: 67

ActiveTabName: Site Settings

RawURL: /Admin/SiteSettings.aspx

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://localhost/Home.aspx

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.152 Safari/537.22

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID: a3fb51fb-3803-47ff-86f6-5f6a81102592

InnerException: Object reference not set to an instance of an object.

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.LoadFiles

StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.LoadFiles() at DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.LoadFolders() at DotNetNuke.Web.UI.WebControls.DnnFilePickerUploader.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

 

 
New Post
3/8/2013 8:22 PM
 
could you try below workaround to see whether it works:
1. open database in sql server management studio, and try to modify sp GetFoldersByPermissions;
2. in this sp there is a line which will try to create a temp table:
CREATE TABLE #Skip_Folders(folderid INT)
and change this line to:
CREATE TABLE #Skip_Folders(folderid INT PRIMARY KEY(folderid)).
run the script to make it modified.
3. goto site settings to see whether the page can open.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...DNN 7 Install - Site Settings brokenDNN 7 Install - Site Settings broken


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