in

dashCommerce

An ASP.NET Open Source e-Commerce Application

Error when I add to cart

Last post 09-27-2010 4:02 PM by jnlevine. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-18-2010 9:20 PM

    Error when I add to cart

    After a year of succesfully operating the web ready version of DC, I am attempting to dive into the source version.  But I am having trouble.

    After going through and setting up my providers, I return to site and attempt to put an item into my cart.  It throws the error: "Object reference not set to an instance of an object."  It is on line 93 of the cart.aspx.cs file.

    The stack trace is as follows:

    [NullReferenceException: Object reference not set to an instance of an object.]
       MettleSystems.dashCommerce.Web.cart.Page_Load(Object sender, EventArgs e) in C:\Projects\Sullivan10\Web\cart.aspx.cs:93
       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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

    One thing I notice is it does not remember the payment provider configuration.  I select the provider and hit the configure provider button and  *BAM* my info i.e. business email, pdt id shows up.  I save (again), leave that page and come back to the configuration page and it says "A critical error has occurred:  Value cannot be null.  Parameter name: virtualPath

     Obviously, something is not right.  Any help is greatly appreciated.

     

     

  • 08-21-2010 9:24 AM In reply to

    Re: Error when I add to cart

    Ok, I hadn't seen a blank entry for the payment providers or the shipping providers.  Once deleted It is not giving me the critical error message. 

    Unfortunately when I attempt to add an item to the shopping cart, I still crash out with the same "Object reference not set to an instance of an object."  

    Any ideas what would cause this? Thanks.

     

  • 08-21-2010 11:29 AM In reply to

    • Corey10e
    • Top 10 Contributor
    • Joined on 08-06-2008
    • Hooper, UT
    • Posts 80

    Re: Error when I add to cart

    Have you put a breakpoint at like line 87 to see if you get a productCollection back?

    Corey10e
    Jumpin Pages LLC
  • 08-25-2010 9:05 PM In reply to

    Re: Error when I add to cart

    Thanks for the reply. 

    I have set the breakpoint to line 87, and when I have stepped into it, crashes on the same line with the message "NullReferenceException was unhandled by user code.  Object reference not set to an instance of an object."

    The thing is, I only have one item set up to test - with no attributes.  It looks like I have all the providers set up.  I did not have a retail price set up, and I had that checked in site settings but no longer.

    I am sure it is on my end, but I can't see anything obvious.


     

  • 09-27-2010 4:02 PM In reply to

    Re: Error when I add to cart

     I'm having the EXACT same problem.  Did you ever get this resolved?

Page 1 of 1 (5 items)