Copied to clipboard

Flag this post as spam?

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


  • Greg Ryjikh 2 posts 22 karma points
    May 02, 2012 @ 02:35
    Greg Ryjikh
    0

    New Umbraco 4.7.2 installation gives Object reference not set to an instance of an object error

    Hi,

    I installed latest version 4 (7.7.2.497) version of Umbraco on Windows 7 Professional 64bit. Site is configured to use .NET 4.0. After installation accessing home page is giving "Object reference not set to an instance of an object" error (see below). I used fresh SQL Server Express database and imported "Simple Site" content and "Designer Green" css. Installation didn't give me any warnings and I can access backend and see for example "Simple Web Site" content there but home page is giving that:

    [NullReferenceException: Object reference not set to an instance of an object.]
       umbraco.cms.businesslogic.macro.MacroModel..ctor(Macro m) +21
       umbraco.macro..ctor(String alias) +344
       umbraco.presentation.templateControls.Macro.CreateChildControls() +1319
       System.Web.UI.Control.EnsureChildControls() +181
       System.Web.UI.Control.InitRecursive(Control namingContainer) +132
       System.Web.UI.Control.InitRecursive(Control namingContainer) +420
       System.Web.UI.Control.InitRecursive(Control namingContainer) +420
       System.Web.UI.Control.InitRecursive(Control namingContainer) +420
       System.Web.UI.Control.InitRecursive(Control namingContainer) +420
       System.Web.UI.Control.InitRecursive(Control namingContainer) +420
       System.Web.UI.Control.InitRecursive(Control namingContainer) +420
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1969

     

     

    Is it anything I can to do to fix it?

    Best Regards,

    Greg

  • Paul Blair 466 posts 731 karma points
    May 02, 2012 @ 05:31
    Paul Blair
    0

    have you tried republishing the site since importing "simple Site"?

  • Greg Ryjikh 2 posts 22 karma points
    May 02, 2012 @ 05:54
    Greg Ryjikh
    0

    No. I didn't. Why that may be required? In fact after trying to use SQL Server compact edition which appeared to be broken in that version too (after adding all required dlls it gave me message that DB can not be "initialized") I downloaded previous stable version 4.7.1 and after installing it exacly the same way everything worked as expected. So I believe that there is something broken either in content distributed with 4.7.2 version or with the code.

  • Paul Blair 466 posts 731 karma points
    May 03, 2012 @ 00:28
    Paul Blair
    0

    I've set up 2 v4.7.2 sites so far without any issues but they have been clean installs so maybe the "simple site" package has an issue with 4.7.2

  • Josh Reid 182 posts 258 karma points
    May 08, 2012 @ 05:34
    Josh Reid
    0

    Have the same issue - No Starter Kit - 4.7.2.497 + SQL...

    EDIT //

    Appears same issue as this one: http://our.umbraco.org/forum/getting-started/installing-umbraco/31274-Error-Upgrading-to-472-Object-Reference-issue

    Removing Macros that don't exist from Templates solved it for me.

  • Peter Duncanson 430 posts 1360 karma points c-trib
    Jun 06, 2012 @ 23:13
    Peter Duncanson
    0

    I've logged this in CodePlex to be fixed asap hopefully.

    http://umbraco.codeplex.com/workitem/30836

  • Efe Oseya 5 posts 25 karma points
    Jun 22, 2012 @ 12:16
    Efe Oseya
    0
  • Arunava 3 posts 23 karma points
    Jul 04, 2012 @ 11:13
    Arunava
    0

    I am getting the below error while trying to run the web site made in Umbraco.

    The url of the site is 

    Link to document
    The error I am getting is as follows:
    Object reference not set to an instance of an object.

    Server Error in '/umbraco/build' 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.macro.MacroModel..ctor(Macro m) +21
    umbraco.macro..ctor(String alias) +344
    umbraco.presentation.templateControls.Macro.CreateChildControls() +1319
    System.Web.UI.Control.EnsureChildControls() +181
    System.Web.UI.Control.InitRecursive(Control namingContainer) +132
    System.Web.UI.Control.InitRecursive(Control namingContainer) +420
    System.Web.UI.Control.InitRecursive(Control namingContainer) +420
    System.Web.UI.Control.InitRecursive(Control namingContainer) +420
    System.Web.UI.Control.InitRecursive(Control namingContainer) +420
    System.Web.UI.Control.InitRecursive(Control namingContainer) +420
    System.Web.UI.Control.InitRecursive(Control namingContainer) +420
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1953


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225

    Request Details

    Session Id: bf4r33d2xlgt4uzpvzn2xh2c Request Type: GET
    Time of Request: 7/4/2012 2:12:32 PM Status Code: 500
    Request Encoding: Unicode (UTF-8) Response Encoding: Unicode (UTF-8)

    Trace Information

    CategoryMessageFrom First(s)From Last(s)
    aspx.page Begin PreInit    
    umbracoInit handling request 0.0143673288085497 0.014367
    request handler current url '/home.aspx' 0.13050122292079 0.116134
    umbracoRequestHandler xpath: '/root/*' 0.14122325602835 0.010722
    umbracoRequestHandler xpath: '/root/* [@urlName = "home"] | /root/*' 0.141342963980059 0.000120
    umbracoRequestHandler xpath: '/root/* [@urlName = "home"] | /root/*/* [@urlName = "home"]' 0.141396811605944 0.000054
    umbracoRequestHandler Just before xPath query (False, '/root/* [@urlName = "home"] | /root/*/* [@urlName = "home"]') 0.141425446530215 0.000029
    umbracoRequestHandler pageXPathQueryStart: '/root' 0.14144144018304 0.000016
    umbracoRequestHandler Adding to cache... ('/home.aspx') 0.141587478296823 0.000146
    umbracoRequestHandler After xPath query 0.141611364014141 0.000024
    umbracoRequestHandler Access checking started 0.141649217987202 0.000038
    umbracoRequestHandler Page not protected 0.141675757673112 0.000027
    umbracoRequestHandler Access checking ended 0.141691402119543 0.000016
    umbracoInit Done handling request 0.141707744978761 0.000016
    umbracoPage Element loaded: bodyText 0.320586554995118 0.178879
    umbracoPage Element loaded: siteName 0.320691386754462 0.000105
    umbracoPage Element loaded: cEOsHobbies 0.320740834379789 0.000049
    umbracoPage Element loaded: siteDescription 0.320787069306295 0.000046
    umbracoPage Element loaded: summery 0.32082736772411 0.000040
    umbracoPage Pagedata loaded for Home (ID: 1065) 0.320857539156513 0.000030
    umbracoPage Looking up skin information 0.32093457408693 0.000077
    aspx.page End PreInit 0.561617677665737 0.240683
    aspx.page Begin Init 0.561701766565304 0.000084
    item Start parsing 'pageName' 0.604154787829179 0.042453
    item Done parsing 'pageName' 0.604966413329068 0.000812
    item.recursive Item loaded from 1065 0.60500636254049 0.000040
    item Start parsing 'siteName' 0.605473530853782 0.000467
    item Done parsing 'siteName' 0.605529334035471 0.000056
    Unhandled Execution Error
    Object reference not set to an instance of an object.
      at umbraco.cms.businesslogic.macro.MacroModel..ctor(Macro m)
      at umbraco.macro..ctor(String alias)
      at umbraco.presentation.templateControls.Macro.CreateChildControls()
      at System.Web.UI.Control.EnsureChildControls()
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Control.InitRecursive(Control namingContainer)
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    0.635970074408898 0.030441

    Control Tree

    Control UniqueIDTypeRender Size Bytes (including children)ViewState Size Bytes (excluding children)ControlState Size Bytes (excluding children)
    __Page ASP.default_aspx 0 0 0
        ctl00 ASP.masterpages_umbhomepage_master 0 0 0
            ctl00$ctl00 ASP.masterpages_umbmaster_master 0 0 0
                ctl00$ctl00$ctl00 ASP.umbraco_masterpages_default_master 0 0 0
                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl07 System.Web.UI.LiteralControl 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$head System.Web.UI.HtmlControls.HtmlHead 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl00 System.Web.UI.HtmlControls.HtmlMeta 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl01 System.Web.UI.HtmlControls.HtmlTitle 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl02 System.Web.UI.WebControls.PlaceHolder 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl03 umbraco.presentation.templateControls.Item 0 0 0
                                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl03$ctl00 System.Web.UI.LiteralControl 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl08 System.Web.UI.LiteralControl 0 0 0
                                    ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl04 umbraco.presentation.templateControls.Item 0 0 0
                                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl04$ctl00 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl05 System.Web.UI.HtmlControls.HtmlLink 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl06 umbraco.presentation.templateControls.Macro 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_head System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl09 System.Web.UI.LiteralControl 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_top System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_top$ctl03 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_top$ctl00 umbraco.presentation.templateControls.Item 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_top$ctl04 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_top$ctl01 umbraco.presentation.templateControls.Item 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_top$ctl05 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_top$ctl02 umbraco.presentation.templateControls.Macro 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_top$ctl06 System.Web.UI.LiteralControl 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl10 System.Web.UI.LiteralControl 0 0 0
                        RunwayMasterForm System.Web.UI.HtmlControls.HtmlForm 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl11 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_content System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_content$ctl01 System.Web.UI.LiteralControl 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_content$ctl00 umbraco.presentation.templateControls.Item 0 0 0
                                ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_content$ctl02 System.Web.UI.LiteralControl 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl12 System.Web.UI.LiteralControl 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl13 System.Web.UI.LiteralControl 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_footer System.Web.UI.WebControls.ContentPlaceHolder 0 0 0
                            ctl00$ctl00$ctl00$ContentPlaceHolderDefault$cp_footer$ctl00 System.Web.UI.LiteralControl 0 0 0
                        ctl00$ctl00$ctl00$ContentPlaceHolderDefault$ctl14 System.Web.UI.LiteralControl 0 0 0

    Session State

    Session KeyTypeValue

    Application State

    Application KeyTypeValue
    umbracoUrl System.String localhost:80/umbraco/build/umbraco
    umbracoNeedConfiguration System.Boolean False
    vnc38ykjnkjdnk2jt98ygkxjng    
    vnc38ykjnkjdnk2jt98ygkxjng    

    Request Cookies Collection

    NameValueSize
    UMB_UCONTEXT 4adb13eb-832f-451a-8b4a-97ee9426fce3 49
    UMB_UPDCHK 1 12
    ASP.NET_SessionId bf4r33d2xlgt4uzpvzn2xh2c 42

    Response Cookies Collection

    NameValueSize

    Headers Collection

    NameValue
    Connection Keep-Alive
    Accept */*
    Accept-Encoding gzip, deflate
    Accept-Language en-US
    Cookie UMB_UCONTEXT=4adb13eb-832f-451a-8b4a-97ee9426fce3; UMB_UPDCHK=1; ASP.NET_SessionId=bf4r33d2xlgt4uzpvzn2xh2c
    Host localhost
    Referer http://localhost/umbraco/build/umbraco/editContent.aspx?id=1065
    User-Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)

    Response Headers Collection

    NameValue
    X-AspNet-Version 4.0.30319
    Cache-Control private
    Content-Type text/html

    Form Collection

    NameValue

    Querystring Collection

    NameValue

    Server Variables

    NameValue
    ALL_HTTP HTTP_CONNECTION:Keep-Alive HTTP_ACCEPT:*/* HTTP_ACCEPT_ENCODING:gzip, deflate HTTP_ACCEPT_LANGUAGE:en-US HTTP_COOKIE:UMB_UCONTEXT=4adb13eb-832f-451a-8b4a-97ee9426fce3; UMB_UPDCHK=1; ASP.NET_SessionId=bf4r33d2xlgt4uzpvzn2xh2c HTTP_HOST:localhost HTTP_REFERER:http://localhost/umbraco/build/umbraco/editContent.aspx?id=1065 HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
    ALL_RAW Connection: Keep-Alive Accept: */* Accept-Encoding: gzip, deflate Accept-Language: en-US Cookie: UMB_UCONTEXT=4adb13eb-832f-451a-8b4a-97ee9426fce3; UMB_UPDCHK=1; ASP.NET_SessionId=bf4r33d2xlgt4uzpvzn2xh2c Host: localhost Referer: http://localhost/umbraco/build/umbraco/editContent.aspx?id=1065 User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)
    APPL_MD_PATH /LM/W3SVC/1/ROOT/umbraco/build
    APPL_PHYSICAL_PATH C:\inetpub\wwwroot\umbraco\build\
    AUTH_TYPE  
    AUTH_USER  
    AUTH_PASSWORD  
    LOGON_USER  
    REMOTE_USER  
    CERT_COOKIE  
    CERT_FLAGS  
    CERT_ISSUER  
    CERT_KEYSIZE  
    CERT_SECRETKEYSIZE  
    CERT_SERIALNUMBER  
    CERT_SERVER_ISSUER  
    CERT_SERVER_SUBJECT  
    CERT_SUBJECT  
    CONTENT_LENGTH 0
    CONTENT_TYPE  
    GATEWAY_INTERFACE CGI/1.1
    HTTPS off
    HTTPS_KEYSIZE  
    HTTPS_SECRETKEYSIZE  
    HTTPS_SERVER_ISSUER  
    HTTPS_SERVER_SUBJECT  
    INSTANCE_ID 1
    INSTANCE_META_PATH /LM/W3SVC/1
    LOCAL_ADDR ::1
    PATH_INFO /umbraco/build/default.aspx
    PATH_TRANSLATED C:\inetpub\wwwroot\umbraco\build\default.aspx
    QUERY_STRING  
    REMOTE_ADDR ::1
    REMOTE_HOST ::1
    REMOTE_PORT 1342
    REQUEST_METHOD GET
    SCRIPT_NAME /umbraco/build/default.aspx
    SERVER_NAME localhost
    SERVER_PORT 80
    SERVER_PORT_SECURE 0
    SERVER_PROTOCOL HTTP/1.1
    SERVER_SOFTWARE Microsoft-IIS/7.5
    URL /umbraco/build/default.aspx
    HTTP_CONNECTION Keep-Alive
    HTTP_ACCEPT */*
    HTTP_ACCEPT_ENCODING gzip, deflate
    HTTP_ACCEPT_LANGUAGE en-US
    HTTP_COOKIE UMB_UCONTEXT=4adb13eb-832f-451a-8b4a-97ee9426fce3; UMB_UPDCHK=1; ASP.NET_SessionId=bf4r33d2xlgt4uzpvzn2xh2c
    HTTP_HOST localhost
    HTTP_REFERER http://localhost/umbraco/build/umbraco/editContent.aspx?id=1065
    HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E)

    Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225
    Please somebody help me to resolve the error.
    Thnx
  • Dave Clinton 31 posts 106 karma points
    Jul 14, 2012 @ 16:58
    Dave Clinton
    1

    As mentioned above if you used the Simple Site starter pack you'll need to remove the macro from the "Starterkit Master" template; removing the following line got it to work for me:

    "<umbraco:macro alias="BlogRssFeedLink" runat="server"></umbraco:macro>"

     

  • Brendan Rice 538 posts 1101 karma points
    Jul 16, 2012 @ 00:36
    Brendan Rice
    0

    Go through each teamplate/master page and check that any Macros are registered with Umbraco.

  • Ed Chavez 1 post 21 karma points
    Jul 19, 2012 @ 16:06
    Ed Chavez
    0

    On a "fresh" install of the Starter kit, Dave Clinton's answer (above) is the most specific way to solve it (points to the actual macro that doesn't exist).

Please Sign in or register to post replies

Write your reply to:

Draft