GetBasket() Object reference not set to an instance of an object
Currently experiencing an issue when attempting to run a site locally (via Visual Studio).
Below is the Umbraco Debug and Trace output
InnerException An error occurred during a call to extension function 'GetBasket'. See InnerException for a complete description of the error. An error occurred during a call to extension function 'GetBasket'. See InnerException for a complete description of the error. at System.Xml.Xsl.Runtime.XmlExtensionFunction.Invoke(Object extObj, Object[] args) at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args) at System.Xml.Xsl.CompiledQuery.Query.basket(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) in C:\inetpub\wwwroot\collection\xslt\SmallCart[XSLT].xslt:line 16 at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer) at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters) at umbraco.macro.loadMacroXSLT(macro macro, MacroModel model, Hashtable pageElements) 0.08829384098323570.000862 umbracoMacro InnerException Object reference not set to an instance of an object. Object reference not set to an instance of an object. at UCommerce.Infrastructure.ObjectFactory.GetContainer(CommerceConfigurationProvider commerceConfiguration) at UCommerce.Infrastructure.ObjectFactory.get_Container() at UCommerce.Xslt.TransactionLibrary.GetBasket(Boolean create) at UCommerce.Xslt.Library.<GetBasket>b__63() at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
Below is the error log in the umbracoLog
Object reference not set to an instance of an object. Castle.Windsor.WindsorContainer GetContainer(UCommerce.Infrastructure.Configuration.CommerceConfigurationProvider) at UCommerce.Infrastructure.ObjectFactory.GetContainer(CommerceConfigurationProvider commerceConfiguration) at UCommerce.Infrastructure.ObjectFactory.get_Container() at UCommerce.Xslt.TransactionLibrary.GetBasket(Boolean create) at UCommerce.Xslt.Library.<GetBasket>b__63() at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
It would seem that uCommerce can't find the components.config file. Could you check and see whether the path listed in web.config matches your current setup?
GetBasket() Object reference not set to an instance of an object
Currently experiencing an issue when attempting to run a site locally (via Visual Studio).
Below is the Umbraco Debug and Trace output
InnerException An error occurred during a call to extension function 'GetBasket'. See InnerException for a complete description of the error.
An error occurred during a call to extension function 'GetBasket'. See InnerException for a complete description of the error.
at System.Xml.Xsl.Runtime.XmlExtensionFunction.Invoke(Object extObj, Object[] args)
at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
at System.Xml.Xsl.CompiledQuery.Query.basket(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) in C:\inetpub\wwwroot\collection\xslt\SmallCart[XSLT].xslt:line 16
at System.Xml.Xsl.CompiledQuery.Query.Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results)
at umbraco.macro.GetXsltTransformResult(XmlDocument macroXML, XslCompiledTransform xslt, Dictionary`2 parameters)
at umbraco.macro.loadMacroXSLT(macro macro, MacroModel model, Hashtable pageElements) 0.0882938409832357 0.000862
umbracoMacro InnerException Object reference not set to an instance of an object.
Object reference not set to an instance of an object.
at UCommerce.Infrastructure.ObjectFactory.GetContainer(CommerceConfigurationProvider commerceConfiguration)
at UCommerce.Infrastructure.ObjectFactory.get_Container()
at UCommerce.Xslt.TransactionLibrary.GetBasket(Boolean create)
at UCommerce.Xslt.Library.<GetBasket>b__63()
at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
Below is the error log in the umbracoLog
Object reference not set to an instance of an object. Castle.Windsor.WindsorContainer GetContainer(UCommerce.Infrastructure.Configuration.CommerceConfigurationProvider) at UCommerce.Infrastructure.ObjectFactory.GetContainer(CommerceConfigurationProvider commerceConfiguration) at UCommerce.Infrastructure.ObjectFactory.get_Container() at UCommerce.Xslt.TransactionLibrary.GetBasket(Boolean create) at UCommerce.Xslt.Library.<GetBasket>b__63() at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
Any ideas?Which version of uCommerce are you working with?
It would seem that uCommerce can't find the components.config file. Could you check and see whether the path listed in web.config matches your current setup?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.