NullReference DisplayMode

Posted by Community Admin on 05-Aug-2018 15:39

NullReference DisplayMode

All Replies

Posted by Community Admin on 21-Aug-2011 00:00

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

Posted by Community Admin on 21-Aug-2011 00:00

I get the same error also when i go to Cart and update the Shopping Cart (remove product or update quantity).

Posted by Community Admin on 24-Aug-2011 00:00

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 >>

Posted by Community Admin on 01-Apr-2012 00:00

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 :) 

Posted by Community Admin on 01-Apr-2012 00:00

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 :) 

Posted by Community Admin on 02-Apr-2012 00:00

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

Posted by Community Admin on 03-Apr-2012 00:00

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

This thread is closed