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&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. ---> 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?