• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

Copying modules from one site to another.

You are not authorized to post a reply.
Sort:


New Member


Posts:1
New Member

    I've created an application that copies a package from a database with all its connected entries and all of the files that are in use by this package. However, I'm still getting this error message. Any ideas on what I could be missing?

    Error message:

    AssemblyVersion: 6.2.9

    PortalID: 0

    PortalName: Baseshop

    UserID: 1

    UserName: host

    ActiveTabID: 222

    ActiveTabName: Test

    RawURL: /Beheer/Test.aspx

    AbsoluteURL: /Default.aspx

    AbsoluteURLReferrer: http://moduletestcopy.dev-new.nl/beheer/84/

    UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36

    DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

    ExceptionGUID: d5c5bda7-0602-4545-b993-e25f0fa43d88

    InnerException: Unhandled Error:

    FileName:

    FileLineNumber: 0

    FileColumnNumber: 0

    Method: DotNetNuke.UI.Containers.ActionBase.get_ModuleContext

    StackTrace:

    Message: System.Exception: Unhandled Error: ---> DotNetNuke.Services.Exceptions.PageLoadException: Er is een fout opgetreden. ---> DotNetNuke.Services.Exceptions.PageLoadException: Er is een fout opgetreden. ---> DotNetNuke.Services.Exceptions.ModuleLoadException: Er is een fout opgetreden. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Containers.ActionBase.get_ModuleContext() at DotNetNuke.UI.Containers.ActionBase.get_ActionRoot() at DotNetNuke.UI.Containers.ActionBase.OnLoad(EventArgs e) --- End of inner exception stack trace --- at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) --- End of inner exception stack trace --- at DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) at DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc) at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(String FriendlyMessage, Control ctrl, Exception exc, Boolean DisplayErrorMessage) at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc, Boolean DisplayErrorMessage) at DotNetNuke.Services.Exceptions.Exceptions.ProcessModuleLoadException(Control ctrl, Exception exc) at DotNetNuke.UI.Containers.ActionBase.OnLoad(EventArgs e) at DotNetNuke.Web.DDRMenu.Actions.OnLoad(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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace --- at DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) at DotNetNuke.Framework.PageBase.OnError(EventArgs e) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e0ae6c3d\97a04fe4\App_Web_y5vmfcqj.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---

     



    Veteran Member


    Posts:487
    Veteran Member

      Thimo,

      I have no idea what you are trying to achieve. The normal way to copy content is to use export/import, if the module provides such a functionality (IPortable interface). The module has to be installed on both portals, of course.

      "Object reference not set to an instance of an object." is not a very helpful error message. I would try to find out where this happens exactly (by using a debug assembly and the associated .pdb file, or by debugging the module in Visual Studio),

      Happy DNNing!
      Michael

      Michael Tobisch
      DNN★MVP

      dnnWerk Austria
      DNN Connect
      You are not authorized to post a reply.

      These Forums are dedicated to discussion of DNN Platform.

      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.

      Would you like to help us?

      Awesome! Simply post in the forums using the link below and we'll get you started.

      Get Involved