I have successfully set up the Razor demo store with Umbraco 6.1.6, uCommerce 4.0.6.13304 and Razor store 2.0.0.13249. I am now attempting to create a new store but am using uCommerce 5.1.1.14007. I am getting errors when trying to use the Json calls. These work in the demo store but I get a 404 error when trying to access any of the methods e.g. /ucommerceapi/Json/SyncReply/GetProductVariations. The config flie looks correct.
Thinking this may be a version issue I've tried to set another test site up using uCommerce 5.1.1.14007 with the demo store. This gives me an error while installing the demo store "Unable to load one or more of the requested types" and in the stack trace I can see
As of uCommerce 5, we've integrated ServiceStack as a core feature and made that exposable for you to hook up web services. Can you please try to upgrade to the latest packages as this should fix your issue.
If you want to debug and fix manually:
Services are registered by having an implementation of the following interface:
UCommerce.Web.Api.IContainsWebservices
Register it in custom.config. You need to implement the interface in the same assembly as your webservices. No methods on the interface or anything else is needed. Only implement a dummy class with the interface and register it in Custom.config.
I updated uCommerce to the latest version (5.2.1.14035) and copied the UCommerce.RazorStore.dll from the latest version of the Razor store (3.0.1.14013). I can now successfully call the uCommerce web services.
Issues with ServiceStack in Razor demo store
Hi,
I have successfully set up the Razor demo store with Umbraco 6.1.6, uCommerce 4.0.6.13304 and Razor store 2.0.0.13249. I am now attempting to create a new store but am using uCommerce 5.1.1.14007. I am getting errors when trying to use the Json calls. These work in the demo store but I get a 404 error when trying to access any of the methods e.g. /ucommerceapi/Json/SyncReply/GetProductVariations. The config flie looks correct.
Thinking this may be a version issue I've tried to set another test site up using uCommerce 5.1.1.14007 with the demo store. This gives me an error while installing the demo store "Unable to load one or more of the requested types" and in the stack trace I can see
[Exception: Failed loading types, last assembly 'UCommerce.Web.Api, Version=5.1.1.14007, Culture=neutral, PublicKeyToken=null', type: '']
ServiceStack.ServiceHost.ServiceManager.GetAssemblyTypes(Assembly[] assembliesWithServices) +268
Can anyone shed some light on what I'm missing or how to rectify the ServiceStack issues?
Thanks,
Geoff
You may experiance an upgrade issue.
As of uCommerce 5, we've integrated ServiceStack as a core feature and made that exposable for you to hook up web services. Can you please try to upgrade to the latest packages as this should fix your issue.
If you want to debug and fix manually:
Services are registered by having an implementation of the following interface:
UCommerce.Web.Api.IContainsWebservices
Register it in custom.config. You need to implement the interface in the same assembly as your webservices. No methods on the interface or anything else is needed. Only implement a dummy class with the interface and register it in Custom.config.
Hope this solves your issue.
Best regards
Morten
Thanks for your reply Morten.
I updated uCommerce to the latest version (5.2.1.14035) and copied the UCommerce.RazorStore.dll from the latest version of the Razor store (3.0.1.14013). I can now successfully call the uCommerce web services.
Sounds great :)
Glad it was sorted!
is working on a reply...