Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Geoff 19 posts 134 karma points
    Feb 04, 2014 @ 07:58
    Geoff
    0

    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

  • Morten Skjoldager 440 posts 1499 karma points
    Feb 07, 2014 @ 15:01
    Morten Skjoldager
    0

    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

  • Geoff 19 posts 134 karma points
    Feb 11, 2014 @ 11:31
    Geoff
    0

    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.

  • Morten Skjoldager 440 posts 1499 karma points
    Feb 11, 2014 @ 16:05
    Morten Skjoldager
    0

    Sounds great :) 

    Glad it was sorted! 

Please Sign in or register to post replies

Write your reply to:

Draft