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 ...Moving an Old DNN to New ServerMoving an Old DNN to New Server
Previous
 
Next
New Post
2/12/2018 3:59 PM
 

Hi, this question asked many times but no exact solution. Like all other people we moved all files with FTP transfer, set an IIS web site, gave required folder permissions but we are testing new one with a subdomain. 

Lets assume old web site: www.mysite.com

New one: a.mysite.com

When i check the log file only thing i can get the error below and an empty screen says DNN Error and a Return To site button:

2018-02-12 18:55:30,905 [S34VM-KZIISC02][Thread:15][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.

System.NullReferenceException: Object reference not set to an instance of an object.

   at DotNetNuke.Framework.DefaultPage.InitializePage()

   at DotNetNuke.Framework.DefaultPage.OnInit(EventArgs e)

   at System.Web.UI.Control.InitRecursive(Control namingContainer)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

2018-02-12 18:55:30,905 [S34VM-KZIISC02][Thread:15][ERROR] DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?error=An unexpected error has occurred&content=0

System.NullReferenceException: Object reference not set to an instance of an object.

   at DotNetNuke.Framework.DefaultPage.InitializePage()

   at DotNetNuke.Framework.DefaultPage.OnInit(EventArgs e)

   at System.Web.UI.Control.InitRecursive(Control namingContainer)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

2018-02-12 18:55:30,921 [S34VM-KZIISC02][Thread:10][FATAL] DotNetNuke.Framework.PageBase - An error has occurred while loading page.

System.NullReferenceException: Object reference not set to an instance of an object.

   at DotNetNuke.Framework.DefaultPage.InitializePage()

   at DotNetNuke.Framework.DefaultPage.OnInit(EventArgs e)

   at System.Web.UI.Control.InitRecursive(Control namingContainer)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

2018-02-12 18:55:30,921 [S34VM-KZIISC02][Thread:10][ERROR] DotNetNuke.Services.Exceptions.Exceptions - ~/Default.aspx?error=terminate

System.NullReferenceException: Object reference not set to an instance of an object.

   at DotNetNuke.Framework.DefaultPage.InitializePage()

   at DotNetNuke.Framework.DefaultPage.OnInit(EventArgs e)

   at System.Web.UI.Control.InitRecursive(Control namingContainer)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

2018-02-12 18:55:30,937 [S34VM-KZIISC02][Thread:10][ERROR] DotNetNuke.Services.Exceptions.Exceptions - 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.Framework.DefaultPage.InitializePage()

   at DotNetNuke.Framework.DefaultPage.OnInit(EventArgs e)

   at System.Web.UI.Control.InitRecursive(Control namingContainer)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

   --- End of inner exception stack trace ---

 

 

My Question is , should i add subdomain (a.mysite.com) to domainalias in the database?

 
New Post
2/12/2018 9:05 PM
Accepted Answer 
Simple answer: Absolutely yes.

DNS needs to point the domain to the site.
IIS needs to be bound to the the domain.
The domain needs to be in the database.

The first one of these gets requests sent from IIS to the website. Internally, the second is needed so that DNN routes the request to the correct portal.



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
2/13/2018 3:08 AM
 
when moving a DNN instance to a new location and you want to use temporary URLs for each domain in your DNN instance (even if it is just a single one), you need to tell DNN about this new address. This information is stored in the database, table PortalAlias, where you might need to adopt the site addresses.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
2/13/2018 5:57 AM
 

Is it enough to add a new domain alias to table DomainAlias? I can't access to web site so i need to add it manually.

 
New Post
2/14/2018 12:30 AM
 
you may just add another alias for your site, if you are not using redirect mode and have another alias marked as primary (there must exist not more than one primary alias per site and language),

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Moving an Old DNN to New ServerMoving an Old DNN to New 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