Copied to clipboard

Flag this post as spam?

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


  • ChrisC 9 posts 29 karma points
    Dec 13, 2012 @ 02:51
  • ChrisC 9 posts 29 karma points
    Dec 13, 2012 @ 03:22
    ChrisC
    0

    I was just reviewing this forum post and I noticed that when you click one of the above product links the page opens fine, but if you copy the URL of one of the product links and paste it directly into your browsers navigation bar it goes to this error page:

     

    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.]
       ForkForceShop.UserControls.ProductDetails.Page_Load(Object sender, EventArgs e) in C:\zeroseven\umbraco\trunk\Fork Force\WholeSite\usercontrols\ProductDetails.ascx.cs:41
       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) +99
       System.Web.UI.Control.LoadRecursive() +50
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Control.LoadRecursive() +141
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
    

     

    Could this have anything to do with the product pages not being indexed?

     

    Because I noticed that when I copy and paste the category page URLs into the browser navigation they still seem to work...

     

     

  • Richard Soeteman 4039 posts 12887 karma points MVP 2x
    Dec 13, 2012 @ 11:24
    Richard Soeteman
    0

    I think something in you usercontrol ProductDetails.ascx.cs is checking for a refererer. You might want to review that code.

    Cheers,

    Richard


     

  • ChrisC 9 posts 29 karma points
    Dec 14, 2012 @ 03:03
    ChrisC
    0

    Thanks for the feedback Richard.

     

    So how do I do that?

     

     

  • Richard Soeteman 4039 posts 12887 karma points MVP 2x
    Dec 14, 2012 @ 04:23
    Richard Soeteman
    0

    That is part of your implemenntation so I don't know.Maybe if you post the code behind we can have a look

  • ChrisC 9 posts 29 karma points
    Dec 14, 2012 @ 07:13
    ChrisC
    0

    I didn't develop the site I just add content to it so I have no idea where to find the "ProductDetails.ascx.cs" file you are referring to. Can you give me any hints. Or point me in the right direction.

     

    Thanks.

  • Richard Soeteman 4039 posts 12887 karma points MVP 2x
    Dec 14, 2012 @ 08:01
    Richard Soeteman
    0

    Ah sorry, This usercontrol is not an Umbraco usercontrol, so you have to ask the guy who implemented this site.

    Cheers,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft