Copied to clipboard

Flag this post as spam?

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


  • Andy B 4 posts 24 karma points
    Aug 03, 2010 @ 15:59
    Andy B
    0

    Standard 404 page - Object reference not set

    Hi guys,

     

    I have just built a site on Umbraco, but I do not see the 404 page like on my other (5) installations.

    I have not changed any config files...

    UmbracoSettings.config still says "<error404>1</error404>"

    404handlers.config still says "<notFound assembly="umbraco" type="handle404"/>"

    Anyone have any ideas what the problem could be?

     

    Thanks, Andy

     

     

    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.requestHandler..ctor(XmlDocument _umbracoContent, String url) +2796
    umbraco.UmbracoDefault.Page_PreInit(Object sender, EventArgs e) +903
    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.EventHandler.Invoke(Object sender, EventArgs e) +0
    System.Web.UI.Page.OnPreInit(EventArgs e) +8698254
    System.Web.UI.Page.PerformPreInit() +31
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +282

    Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3614

    Request Details

    Session Id: b2guteu2i5pa0o45e51odzm1 Request Type: GET
    Time of Request: 8/3/2010 2:43:08 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 2.86318299310473E-05 0.000029
    request handler current url '/what.aspx' 7.57910225474542E-05 0.000047
    umbracoRequestHandler xpath: '/root/node' 0.000132846678743529 0.000057
    umbracoRequestHandler xpath: '/root/node [@urlName = "what"] | /root/node' 0.00016447827238814 0.000032
    umbracoRequestHandler xpath: '/root/node [@urlName = "what"] | /root/node/node [@urlName = "what"]' 0.000199984247570904 0.000036
    umbracoRequestHandler Just before xPath query (False, '/root/node [@urlName = "what"] | /root/node/node [@urlName = "what"]') 0.000227824159930116 0.000028
    umbracoRequestHandler pageXPathQueryStart: '/root' 0.00025181976357036 0.000024
    Unhandled Execution Error
    Object reference not set to an instance of an object.
      at umbraco.requestHandler..ctor(XmlDocument _umbracoContent, String url)
      at umbraco.UmbracoDefault.Page_PreInit(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.EventHandler.Invoke(Object sender, EventArgs e)
      at System.Web.UI.Page.OnPreInit(EventArgs e)
      at System.Web.UI.Page.PerformPreInit()
      at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Aug 03, 2010 @ 17:49
    Ismail Mayat
    0

    Andy,

    I am assuming in your install you already have published 404 page? What is the id of that page? I would take that id and set it in the UmbracoSettings.config error404 node.

    Regards

    Ismail

Please Sign in or register to post replies

Write your reply to:

Draft