+1-888-365-2779
Try Now
More in this section

Forums / Ecommerce / NullReference DisplayMode

NullReference DisplayMode

7 posts, 0 answered
  1. Lev Rosenblit
    Lev Rosenblit avatar
    37 posts
    Registered:
    14 May 2008
    21 Aug 2011
    Link to this post
    Hi,
    I've created a new project with four pages: shop, cart, checkout, invoice (with respective widgets).
    I have an offline payment method setup and all the required store settings.
    No product or type were deleted or modified.
    when i check out - after preview - i get the following error:

    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.]
       Telerik.Sitefinity.Modules.Ecommerce.Catalog.Web.UI.Fields.DisplayPriceField.get_DisplayMode() +1126
    
    [TargetInvocationException: Property accessor 'DisplayMode' on object 'Telerik.Sitefinity.Modules.Ecommerce.Catalog.Web.UI.Fields.DisplayPriceField' threw the following exception:'Object reference not set to an instance of an object.']
       System.ComponentModel.ReflectPropertyDescriptor.GetValue(Object component) +657
       Telerik.Sitefinity.Web.UI.ConditionalTemplateContainer.IsMatch_private(Object component, PropertyDescriptorCollection properties, ConditionalTemplate condition) +164
       Telerik.Sitefinity.Web.UI.ConditionalTemplateContainer.EvalTemplates_private(Object component) +303
       Telerik.Sitefinity.Web.UI.ConditionalTemplateContainer.InstantiateForServerMode() +37
       System.Web.UI.Control.EnsureChildControls() +182
       Telerik.Sitefinity.Web.UI.Fields.FieldControl.CreateContainer(ITemplate template) +78
       Telerik.Sitefinity.Web.UI.SimpleView.get_Container() +60
       Telerik.Sitefinity.Web.UI.SimpleView.CreateChildControls() +62
       System.Web.UI.Control.EnsureChildControls() +182
       System.Web.UI.WebControls.CompositeControl.get_Controls() +24
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +35
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +199
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +436
       System.Web.UI.Page.LoadAllState() +648
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2094

  2. Lev Rosenblit
    Lev Rosenblit avatar
    37 posts
    Registered:
    14 May 2008
    21 Aug 2011
    Link to this post
    I get the same error also when i go to Cart and update the Shopping Cart (remove product or update quantity).
  3. Craig Iredale
    Craig Iredale avatar
    0 posts
    Registered:
    20 Jan 2015
    24 Aug 2011
    Link to this post
    Hi Lev Rosenblit,

    I tried to recreate the error that you are seeing. However, I was unable to get the exception that you posted using the configuration described in your post.  Could you provide me with more details so that I can recreate the error.

    Greetings,
    Craig Iredale
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  4. Freddy
    Freddy avatar
    3 posts
    Registered:
    18 May 2011
    01 Apr 2012
    Link to this post
    dear , i got the same error  , when trying to update the ordered products or when clicking Proceed button ..

    Please advise asap , as i already bought the module and i cant use it anymore :S

    Your help will be appreciated :) 
  5. Freddy
    Freddy avatar
    3 posts
    Registered:
    18 May 2011
    01 Apr 2012
    Link to this post
    dear , i got the same error  , when trying to update the ordered products or when clicking Proceed button ..

    Please advise asap , as i already bought the module and i cant use it anymore :S

    Your help will be appreciated :) 
  6. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    02 Apr 2012
    Link to this post
    Hey Freddy,

    I'm not sure what solved the problem exactly for Lev, but judging by the error message displayed I'm guessing the tax class, tax rates and/or ecommerce configuration> tax display mode isn't configured.

    First you need to set up tax classes. Then apply tax rates to those classes and finally in the configuration set how the store should display them. (Excluding Tax or Including Tax. And in case of Including tax, which tax should be displayed).

    Hope this solves your issues.
    Jochem
  7. Grace Hallwachs
    Grace Hallwachs avatar
    144 posts
    Registered:
    03 Nov 2014
    03 Apr 2012
    Link to this post
    Hi,

    Please let us know if you run into anymore troubles. Thanks so much.

    Greetings,
    Grace Hallwachs
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
7 posts, 0 answered