When I call the method GetNiceUrlForCategory, I get the following exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at UCommerce.Catalog.UrlService.GetUrl(ProductCatalog catalog, Category category)
at UCommerce.Xslt.CatalogLibrary.GetNiceUrlForCategory(String catalogName, String categoryName)
at UCommerce.Xslt.Library.<>c__DisplayClass2d.b__2c()
at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
at UCommerce.Xslt.Library.GetNiceUrlForCategory(String catalogName, String categoryName)
GetNiceUrlForCategory exception
Hi there,
When I call the method GetNiceUrlForCategory, I get the following exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at UCommerce.Catalog.UrlService.GetUrl(ProductCatalog catalog, Category category)
at UCommerce.Xslt.CatalogLibrary.GetNiceUrlForCategory(String catalogName, String categoryName)
at UCommerce.Xslt.Library.<>c__DisplayClass2d.b__2c()
at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)
at UCommerce.Xslt.Library.GetNiceUrlForCategory(String catalogName, String categoryName)
This is the XSLT I used:
<xsl:copy-of select="CommerceLibrary:GetNiceUrlForCategory('uCommerce', 'Software')" />
It's a bug. I've included a fix in the uCommerce 2.1.0.0 prerelease.
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.