Copied to clipboard

Flag this post as spam?

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


  • jb santana 5 posts 35 karma points
    Jul 18, 2013 @ 15:38
    jb santana
    0

    error on installation

    hi im trying to install the package to a fresh 6.1.2 installation and altough package seems to install this error comes up:

    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.


    Stack Trace: 

    [NullReferenceException: Object reference not set to an instance of an object.]
       usercontrols_StandardWebsiteInstall.Page_Load(Object sender, EventArgs e) +276
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
       System.Web.UI.Control.OnLoad(EventArgs e) +92
       System.Web.UI.Control.LoadRecursive() +54
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Control.LoadRecursive() +145
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
    
    i couldnt find any similar error on the forum and is my first time using umbraco any help would be greatly apreciated

    jb santana
  • jb santana 5 posts 35 karma points
    Jul 18, 2013 @ 17:25
    jb santana
    0

    also i installed locally using webmatrix my database is in microsoft sql server 2012 

     

    ty 4 any help :)

     

    jb santana

  • Ben Norman 167 posts 275 karma points
    Jul 19, 2013 @ 04:08
    Ben Norman
    0

    if I turn on debug mode before I install I get the following detail in the error message:

    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:

    Line 39:             int slideShowId = -1;
    Line 40: 
    Line 41: root.SetValue("primaryNavigation", root.Id + ""); Line 42:             root.SetValue("headerNavigation", "");
    Line 43:             root.SetValue("slideshow", "");


    Source File: c:\ewide.projects\tr\Standard Website Mvc\Standard Website Mvc\usercontrols\StandardWebsiteInstall.ascx.cs    Line: 41             

  • Ben Norman 167 posts 275 karma points
    Jul 19, 2013 @ 04:14
    Ben Norman
    0

    I bet it has to do with the fact that the root is not published yet. 

    The code has a commented out line of code using documents rather than content on line 32. If line 32 was used instead of line 30 I reckon it would work.

    I'll give it a whirl, 2 tix

  • Ben Norman 167 posts 275 karma points
    Jul 19, 2013 @ 04:23
    Ben Norman
    0

    Compilation Error

     Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS1061: 'umbraco.cms.businesslogic.web.Document' does not contain a definition for 'SetValue' and no extension method 'SetValue' accepting a first argument of type 'umbraco.cms.businesslogic.web.Document' could be found (are you missing a using directive or an assembly reference?)

    Source Error:

     
    Line 39:             int slideShowId = -1;
    Line 40: 
    Line 41: root.SetValue("primaryNavigation", root.Id + ""); Line 42:             root.SetValue("headerNavigation", "");
    Line 43:             root.SetValue("slideshow", "");


    Source File: c:\ewide.projects\tr\Standard Website Mvc\Standard Website Mvc\usercontrols\StandardWebsiteInstall.ascx.cs    Line: 41             

  • Ben Norman 167 posts 275 karma points
    Jul 19, 2013 @ 04:24
    Ben Norman
    0

    So its a different error but now I need the old api stuff. :(

  • Ben Norman 167 posts 275 karma points
    Jul 19, 2013 @ 04:45
    Ben Norman
    100

    Hang on. Here is a fix. Update line 30 to be

     

    var root = contentService.GetRootContent().Where(x => x.Name.StartsWith("Home")).FirstOrDefault();

  • jb santana 5 posts 35 karma points
    Jul 19, 2013 @ 16:02
    jb santana
    0

    ok ill try and verify ill keep u posted and ty..:)

  • jb santana 5 posts 35 karma points
    Jul 23, 2013 @ 15:22
    jb santana
    0

    Excellent changing line 30 fixed it to perfection ty very much 4 your help sorry that i couldnt high 5 i dont have enough karma yet but as soon as i can i certainly will come back and do so...:)

     

Please Sign in or register to post replies

Write your reply to:

Draft