i'm getting a little error when trying to call the GetNiceUrlForVariant Method. It says that EntitiesV2.Product has no method get_ParentProductId(). I don't know why.
The method get_ParentProductId was remove in uCommerce 3. It would seem that you might have old DLLs from uCommerce 2 mixed with new ones.
You can test if by replacing the uCommerce DLLs in your /bin folder with the ones from the zip files containing uCommerce 3.
I've had it happen a couple of times and usually the culprit is some sort of automatic deployment of the solution to the web server, which also includes the references uCommerce DLLs from the Visual Studio project.
GetNiceUrlForVariant Error
Hey all,
i'm getting a little error when trying to call the GetNiceUrlForVariant Method. It says that EntitiesV2.Product has no method get_ParentProductId(). I don't know why.
Calling the function like this:
"variants" is a list with all variants from my current product.
Using uCommerce 3.0.0.12320.
Any help welcome!
David B.
Hi David,
The method get_ParentProductId was remove in uCommerce 3. It would seem that you might have old DLLs from uCommerce 2 mixed with new ones.
You can test if by replacing the uCommerce DLLs in your /bin folder with the ones from the zip files containing uCommerce 3.
I've had it happen a couple of times and usually the culprit is some sort of automatic deployment of the solution to the web server, which also includes the references uCommerce DLLs from the Visual Studio project.
Hope this helps.
Hi Soren,
i think you had the right idea. Replaced the DLL, infact i reinstalled uCommerce and now everything works as expected.
Thanks for the help.
Excellent. Thanks for being awesome and posting a follow-up here!
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.