Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Floffy 26 posts 33 karma points
    Apr 29, 2012 @ 22:18
    Floffy
    0

    Migrating pages (as a package) fails (Object reference not set to an instance of an object.)

    After upgradig a few times (from 3.x to 4.7) I started running in to diffrent problems, so I desided to "Start over".

    Sites running on a MySQL 5.1.51, Windows Server 2003, IIS 6.0, .net 4.0

    Old site is Umbraco 4.7.0, new is 4.7.2

    So I created 3 packages:

    • Dokument types + templates + stylesheets + data types
    • Macros
    • Content

    Changed umbraco.config ForceSafeAliases to false due to use of captital starting letter in properties. (plan to change after install)

    The two first installs but the contents fails, with this:

     

    Server Error in '/' Application.
    Object reference not set to an instance of an object.
    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.]
       umbraco.cms.businesslogic.Content.CreateContent(ContentType ct) +118
       umbraco.cms.businesslogic.web.Document.MakeNew(String Name, DocumentType dct, User u, Int32 ParentId) +300
       umbraco.cms.businesslogic.web.Document.Import(Int32 ParentId, User Creator, XmlElement Source) +370
       umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +3611
       umbraco.presentation.developer.packages.Installer.processInstall(String currentStep) +180
       umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) +405
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +91
       umbraco.BasePages.BasePage.OnLoad(EventArgs e) +14
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

    In the log there is one error entry:

     

    At /umbraco/developer/packages/installer.aspx?installing=businesslogic&dir=c:\webs\talkactive\web431781\prod.bfnsj.dk\App_Data\b57d254d-91a0-4b79-bf0c-e2031715f26a&pId=7 (Referred by: http://prod.bfnsj.dk/umbraco/developer/packages/installer.aspx): System.NullReferenceException: Object reference not set to an instance of an object.
       at umbraco.cms.businesslogic.Content.CreateContent(ContentType ct)
       at umbraco.cms.businesslogic.web.Document.MakeNew(String Name, DocumentType dct, User u, Int32 ParentId)
       at umbraco.cms.businesslogic.web.Document.Import(Int32 ParentId, User Creator, XmlElement Source)
       at umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir)
       at umbraco.presentation.developer.packages.Installer.processInstall(String currentStep)
       at umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e)
       at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
       at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
       at System.Web.UI.Control.OnLoad(EventArgs e)
       at umbraco.BasePages.BasePage.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    Any ideas? Either to fix or work-around?

     

     

Please Sign in or register to post replies

Write your reply to:

Draft