XmlPackage Exception: Exception=An error occurred during a call to extension function 'RegisterProduct'. See InnerException for a complete description of the error.
Object reference not set to an instance of an object.
System.Xml.Xsl.XslTransformException: An error occurred during a call to extension function 'RegisterProduct'. See InnerException for a complete description of the error. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Interprise.Facade.Customer.ItemTaxFacade.CalculateTax(String customerCode, String itemCode, String umCode, Decimal netSalesPrice, Decimal netSalesPriceRate, Decimal cost, Decimal costRate, Decimal quantity)
at AspDotNetStorefrontCommon.DTO.KitItemData.GetKitComposition(Customer thisCustomer, Int32 itemCounter, String itemKitCode, Boolean useCustomerPrice)
at AspDotNetStorefrontCommon.XSLTExtensionBase.RegisterProduct(Int32 itemCounter, String itemCode, String itemType)
--- End of inner exception stack trace ---
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
(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current, XPathNavigator pName, XPathNavigator pDescription, XPathNavigator pSalesPromptName)
at (XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current)
at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter)
at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, Stream results)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, Stream results)
at AspDotNetStorefrontCommon.XmlPackage2.TransformString()
at AspDotNetStorefrontCommon.AppLogic.RunXmlPackage(XmlPackage2 p, Parser UseParser, Customer ThisCustomer, Int32 SkinID, Boolean ReplaceTokens, Boolean WriteExceptionMessage)