Copied to clipboard

Flag this post as spam?

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


  • Eran Meir 401 posts 543 karma points
    Jul 27, 2013 @ 10:14
    Eran Meir
    0

    error on installation - v6.1.3 with v2

    hey, i've tryed to install this package on umbraco 6.1.3 but i get

    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: 

    The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

    1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

      <%@ Page Language="C#" Debug="true" %>

    or:

    2) Add the following section to the configuration file of your application:

    <configuration>
       <system.web>
           <compilation debug="true"/>
       </system.web>
    </configuration>

    Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

    Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.


    Stack Trace: 

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.cms.businesslogic.web.Access.RenameMemberShipRole(String oldRolename, String newRolename) +65
       umbraco.cms.businesslogic.member.MemberGroup.Save() +84
       usercontrols_StandardWebsiteInstall.SetupClientArea(Int32 clientAreaId, Int32 loginPageId, Int32 errorPageId) +168
       usercontrols_StandardWebsiteInstall.Page_Load(Object sender, EventArgs e) +2332
       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
    
  • Ira 2 posts 22 karma points
    Aug 01, 2013 @ 22:28
    Ira
    0

    I'm getting the same error when I attempt to install v2 with Umbraco 6.1.3.

    Here's how I got to this point:

    - I followed this advice http://www.systenics.com/blog/setting-up-umbraco-6-in-visual-studio-2012-for-mvc-development/ to set up an MVC 4 project for Umbraco, and ran all the permissions on the server

    - Did the typical install mssql and everything worked fine, i can log in. Chose not to install any starter kits during install.

    - After logging into Umbraco, I navigate to Developer/Packages/Install Local Package and choose the StandardWebsiteMVC_2.0.zip file I downloaded, check the box, press Load Package, accept the MIT license, and press Install Package

    - It says "Installing package, please wait..." - then I am presented with the following error after 30 or 40 seconds:

    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: 

    Line 182:        MemberGroup newGroup3 = MemberGroup.MakeNew("Client2", getUser());
    Line 183:
    Line 184: newGroup1.Save(); Line 185:        newGroup3.Save();
    Line 186:        newGroup3.Save();


    Source File: e:\web\Site\UserControls\StandardWebsiteInstall.ascx.cs    Line: 184 

    Stack Trace: 

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.cms.businesslogic.web.Access.RenameMemberShipRole(String oldRolename, String newRolename) +70
       umbraco.cms.businesslogic.member.MemberGroup.Save() +84
       usercontrols_StandardWebsiteInstall.SetupClientArea(Int32 clientAreaId, Int32 loginPageId, Int32 errorPageId) in e:\web\HemlockPop\UserControls\StandardWebsiteInstall.ascx.cs:184
       usercontrols_StandardWebsiteInstall.Page_Load(Object sender, EventArgs e) in e:\web\HemlockPop\UserControls\StandardWebsiteInstall.ascx.cs:166
       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
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Control.LoadRecursive() +146
       System.Web.UI.Control.LoadRecursive() +146
       System.Web.UI.Control.LoadRecursive() +146
       System.Web.UI.Control.LoadRecursive() +146
       System.Web.UI.Control.LoadRecursive() +146
       System.Web.UI.Control.LoadRecursive() +146
       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.1

    Any ideas? Would love to get this working.

    Thanks,

    Ira in Seattle

  • jb santana 5 posts 35 karma points
    Aug 01, 2013 @ 22:29
    jb santana
    0

    hey I  had a similar issue and i resolved with answer in this post http://our.umbraco.org/projects/starter-kits/standard-website-mvc/bugs-issues/43364-error-on-installation not sure if its the same error but it seem like it 

     

  • Ira 2 posts 22 karma points
    Aug 01, 2013 @ 23:16
    Ira
    0

    Hi JB,

    Thanks - I tried this fix - changed the line in the code, re-zipped it, installed through the UI...still get the same error on Line184: newGroup1.Save();

    The weird thing is - the site actually renders, and the files appear to be there...I just don't know if some process didn't finish due to this.

    Hmm.

  • JGS 1 post 20 karma points
    Aug 10, 2013 @ 22:16
    JGS
    0

    In addition to changing line 30 to:

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

    Comment out lines 184-186:

    //newGroup1.Save();
    //newGroup3.Save();
    //newGroup3.Save();

    The MemberGroup.MakeNew() function is returning null. Apparently this is no longer needed. Those groups get created anyway, without Save() being called. Also, Save() is called twice on newGroup3, but never on newGroup2.

    The client area was not getting secured due to this bug.

Please Sign in or register to post replies

Write your reply to:

Draft