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 ...Cannot move localhost from one pc to another.Cannot move localhost from one pc to another.
Previous
 
Next
New Post
2/18/2015 2:22 AM
 

Hello

I made 2 websites on my pc as a localhost/DNN7 and one localhost/DNNPETROLINA. We have a server that has a dnn website already online and i want to move the two websites from localhost of my pc to the server.

Now there are a couple of issues here. 

First i copy all the files to the server, including the database, give all permissions, change the connection strings, i create a new website in iis and asign app pool vs4 classic/integrated(tried both). And when i try to browse the website i get this error:

http://localhost/Default.aspx?error=An%20unexpected%20error%20has%20occurred&content=0

From eventlogs this is the complete error:

<LogProperties><LogProperty><PropertyName>AssemblyVersion</PropertyName><PropertyValue>7.3.2</PropertyValue></LogProperty><LogProperty><PropertyName>PortalID</PropertyName><PropertyValue>-1</PropertyValue></LogProperty><LogProperty><PropertyName>PortalName</PropertyName><PropertyValue /></LogProperty><LogProperty><PropertyName>UserID</PropertyName><PropertyValue>-1</PropertyValue></LogProperty><LogProperty><PropertyName>UserName</PropertyName><PropertyValue /></LogProperty><LogProperty><PropertyName>ActiveTabID</PropertyName><PropertyValue>-1</PropertyValue></LogProperty><LogProperty><PropertyName>ActiveTabName</PropertyName><PropertyValue /></LogProperty><LogProperty><PropertyName>RawURL</PropertyName><PropertyValue>/Default.aspx?error=An%20unexpected%20error%20has%20occurred&amp;content=0</PropertyValue></LogProperty><LogProperty><PropertyName>AbsoluteURL</PropertyName><PropertyValue>/Default.aspx</PropertyValue></LogProperty><LogProperty><PropertyName>AbsoluteURLReferrer</PropertyName><PropertyValue /></LogProperty><LogProperty><PropertyName>UserAgent</PropertyName><PropertyValue>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36</PropertyValue></LogProperty><LogProperty><PropertyName>DefaultDataProvider</PropertyName><PropertyValue>DotNetNuke.Data.SqlDataProvider, DotNetNuke</PropertyValue></LogProperty><LogProperty><PropertyName>ExceptionGUID</PropertyName><PropertyValue>b4d5a442-521c-4714-8620-c2db7c9b14ce</PropertyValue></LogProperty><LogProperty><PropertyName>InnerException</PropertyName><PropertyValue>Object reference not set to an instance of an object.</PropertyValue></LogProperty><LogProperty><PropertyName>FileName</PropertyName><PropertyValue>c:\inetpub\DNN7\Default.aspx.cs</PropertyValue></LogProperty><LogProperty><PropertyName>FileLineNumber</PropertyName><PropertyValue>273</PropertyValue></LogProperty><LogProperty><PropertyName>FileColumnNumber</PropertyName><PropertyValue>13</PropertyValue></LogProperty><LogProperty><PropertyName>Method</PropertyName><PropertyValue>DotNetNuke.Framework.DefaultPage.InitializePage</PropertyValue></LogProperty><LogProperty><PropertyName>StackTrace</PropertyName><PropertyValue /></LogProperty><LogProperty><PropertyName>Message</PropertyName><PropertyValue>DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.

   at DotNetNuke.Framework.DefaultPage.InitializePage() in c:\inetpub\DNN7\Default.aspx.cs:line 273

   at DotNetNuke.Framework.DefaultPage.OnInit(EventArgs e) in c:\inetpub\DNN7\Default.aspx.cs:line 644

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

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

 

   --- End of inner exception stack trace ---</PropertyValue></LogProperty><LogProperty><PropertyName>Source</PropertyName><PropertyValue /></LogProperty></LogProperties>

 

Now the strange thing is, if i copy the new websites inside the folder of the existing one that works online and merge their files, and keep the assigned database to the new one not the online db, the website works with no errors. (WE get a few errors on the aliases but we can fix those, but the werbiste loads anyway)

I also moved the working website to a 2nd server as localhost to keep it as a test server, and it works ok in localhost. And i copy the new websites again ontop of the working website and it works on the second server aswell. 

So the obvious thing is that the working website has something that the new websites dont have. An option in database/Website that i didnt enable or made.

Anyone knows what i miss here? 

 

 
New Post
2/18/2015 4:29 AM
 
Did you set a portalalias for the site in its new home? Look in the database table PortalAlias. DNN caches what it reads from that table. Stop/start IIS after making the change so it gets re-read.

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
2/18/2015 4:35 AM
 

Yes i tried that. I tried leaving only localhost, or localhost/something, tried having many aliases, tried changing primary alias. But all ends up with the same error. But the question arrise again. Why it works when i merge the files with the working websites? It still reads the new database, not the working one so the aliases are the same

 
New Post
3/3/2015 9:55 PM
 
I have the same issue, thanks for this information.
 
New Post
3/4/2015 3:48 AM
 

Can anyone help? I can provide a teamviewer connection for someone who has a clue and check it out.

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Cannot move localhost from one pc to another.Cannot move localhost from one pc to another.


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