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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Duplicating site to test upgrade...Duplicating site to test upgrade...
Previous
 
Next
New Post
4/16/2010 2:17 PM
 

I have a site that I duplicated to test an DNN upgrade and both sites pull from the same database (just so you know)... I did the following:

  • Physically duplicated the DNN Instance Folder on the web server
  • Created a new A record and binded it to that new site in IIS7
  • Logged into the original live site and created a new Portal Alias that reflected the new A record I created

When I browse to the site I get the following error:

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Entities.Portals.PortalSettings..ctor(Int32 tabID, PortalAliasInfo objPortalAliasInfo) +48
   DotNetNuke.HttpModules.UrlRewriteModule.OnBeginRequest(Object s, EventArgs e) +2969
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

Server Error in '/' Application.

Object reference not set to an instance of an object.

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.4049

What is casuing this error? I thought duplicating the site would have been pretty straight forward... any help woudl be appreciated.

 
New Post
4/16/2010 3:56 PM
 

Did you add the Portal Alias before or after duplicating the site?

Did you duplicate the database as well?

Did you modify the web.config to point to the new database?

Did you configure the permissions on the newly created folder?


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
4/16/2010 5:27 PM
 
Did you add the Portal Alias before or after duplicating the site? before
Did you duplicate the database as well? Did not need to - we have a seperate database server... the live and the test site pull from the same DB (I am not worried about this as much since I can roll back the DB if needed in an instant. It is the site files I was worried about)

Did you modify the web.config to point to the new database? No, direct duplicate

Did you configure the permissions on the newly created folder? Not sure how or what I would need to do with this.

Chris... thank you for your input... you have helped me more than once and I truly appreciate it. It is nice to see you actively participating in the community. Thank you again.
 
New Post
4/16/2010 7:15 PM
 

Ah I see, so pointing to the same DB is the plan, so that's fine, you just have to be careful obviously as any changes to test are immediately made to production. As long as everyone is aware of that you're okay :) 

As for permissions, you'll want to right click on the new folder and choose properties, then the Security tab.

From there you need to configure the permissions for MODIFY or FULL CONTROL for whatever account you have setup in IIS for the Application Pool. I would look at your existing folder, properties, security tab, and setup permissions on the NEW folder to match the OLD folder. You'll also want to check that the application pool for both the NEW and OLD site in IIS are using the same account information.

For Windows 2003/2008 it is pretty stanard to use the NETWORK SERVICE account, but with 2008 R2 and Windows 7 the account by default is something like AppPoolIdentity which is a dynamic account and needs to be assigned a little bit differently.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
4/21/2010 11:05 AM
 

Chris - Thanks for the info - I will run some tests and see what I find out. If I run into any issues I will post them here. Thanks again.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Duplicating site to test upgrade...Duplicating site to test upgrade...


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