Yet another problem with adding products to basket via xslt
Hi there, anyone know why i keep getting this exception when i try to add to basket (via AddToBasket[XSLT].xslt)
umbracoMacro InnerException
Object reference not set to an instance of an object. Object
reference not set to an instance of an object. at
UCommerce.Runtime.OrderContext.PersistBasketId(Guid basketId) at
UCommerce.Runtime.OrderContext.CreateBasket() at
UCommerce.Runtime.OrderContext.GetBasket(Boolean create) at
UCommerce.Xslt.ClientContext.GetBasket(Boolean create) at
UCommerce.Xslt.TransactionLibrary.AddToBasket(String catalogName, Int32
quantity, String sku, String variantSku) at
UCommerce.Xslt.Library.<>c__DisplayClass31.<AddToBasket>b__30()
at UCommerce.Xslt.Library.HandledCall[T](Func`1 method) at
UCommerce.Xslt.Library.AddToBasket(String catalogName, Int32 quantity,
String sku, String variantSku)
Yet another problem with adding products to basket via xslt
Hi there, anyone know why i keep getting this exception when i try to add to basket (via AddToBasket[XSLT].xslt)
umbracoMacro InnerException Object reference not set to an instance of an object.
Object reference not set to an instance of an object.
at UCommerce.Runtime.OrderContext.PersistBasketId(Guid basketId)
at UCommerce.Runtime.OrderContext.CreateBasket()
at UCommerce.Runtime.OrderContext.GetBasket(Boolean create)
at UCommerce.Xslt.ClientContext.GetBasket(Boolean create)
at UCommerce.Xslt.TransactionLibrary.AddToBasket(String catalogName, Int32 quantity, String sku, String variantSku)
at UCommerce.Xslt.Library.<>c__DisplayClass31.<AddToBasket>b__30()
at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
at UCommerce.Xslt.Library.AddToBasket(String catalogName, Int32 quantity, String sku, String variantSku)
Hi,
Are you running IIS7? Can you verify that you have the runAllManagedModulesForAllRequests to true in web.config?
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
Let me know how it works out.
- Lasse
Thank you Lasse, you rock!! ;-)
is working on a reply...