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.

  • René Nissen 15 posts 96 karma points
    Dec 11, 2014 @ 15:10
    René Nissen
    0

    uCommerce in a Windows application

    Hi guys

    Recently, I stumbled over this interesting link http://www.publicvoid.dk/UsingTheUCommerce3APIInAWindowsApplication.aspx

    I decided to try with uCommerce 6.4.4.14301 but when I try to do something like getting categories then I get this error:

    An unhandled exception of type 'Castle.MicroKernel.SubSystems.Conversion.ConverterException' occurred in Castle.Windsor.dll

    Additional information: Could not convert string 'UCommerce.Web.Api.UCommerceAppHost, UCommerce.Web.Api' to a type. Assembly was not found. Make sure it was deployed and the name was not mistyped.

    I hope somebody might have an answer...

    Best regards

    René

     

  • Martin 181 posts 740 karma points
    Dec 11, 2014 @ 16:09
    Martin
    0

    Hi René,

    As the error message states

     Could not convert string 'UCommerce.Web.Api.UCommerceAppHost, UCommerce.Web.Api' to a type. Assembly was not found

    Make sure that the file UCommerce.Web.Api.dll is copied to your binary folder as well. So that would be first step :)

    Best regards
    Martin 

  • René Nissen 15 posts 96 karma points
    Dec 11, 2014 @ 17:39
    René Nissen
    0

    Hi Martin

    Of course, I should have mentioned that UCommerce.Web.Api is referenced in the project, and the dll is present in the bin folder as it is supposed to be.

    The same goes for these dll's: businesslogic, Castle.Core, Castle.Windsor, ClientDependency.Core, FluentNHibernate, Iesi.Collections, interfaces, log4net, NHibernate.Caches.SysCache2, NHibernate, UCommerce, UCommerce.Infrastructure, UCommerce.Pipelines, UCommerce.Presentation, UCommerce.Transactions.Payments,UCommerce.Umbraco7, Umbraco.Core and umbraco

    Nevertheless, I get the error as stated earlier.

    Best regards

    René

  • Martin 181 posts 740 karma points
    Dec 11, 2014 @ 18:23
    Martin
    0

    Ah okay :-)

    So my assumption will be that you have followed Sørens blog post and done every step. Otherwise correct me :)

    Well my guess here will be that some dependency for UCommerce.Web.Api is missing. Sometimes Castle throws some not entire precise exceptions; so can you try to take a look at the "View details" when the exceptions occurs in our application and look at the inner exception and the other information in that window. One of the rows should be able to tell you which dependency is missing (if that is the case).

  • René Nissen 15 posts 96 karma points
    Dec 11, 2014 @ 19:23
    René Nissen
    0

    Hi Martin

    Thank you for taking the time. I have followed Sørens description with a few changes, because I was unable to find the NHibernate.ByteCode.Castle.dll and the Ucommerce.Web.Api.dll was not mentioned in the description. I have made the following screenshots of the exception:

    http://screencast.com/t/mOOs9g28

    http://screencast.com/t/GZgTmmWy

     

  • Martin 181 posts 740 karma points
    Dec 11, 2014 @ 21:18
    Martin
    0

    Hmm. Good question. Well the exception is not telling that much in this case.

    Do you have added ServiceStack in your binary folder as well? I think uCommerce.Web.Api needs that for hosting web services. Could you try to include those in the binary folder? I think uCommerce uses the last available version in 3.9.x.x

  • René Nissen 15 posts 96 karma points
    Dec 11, 2014 @ 21:30
    René Nissen
    0

    I have just added ServiceStack, ServiceStack.Common, ServiceStack.ServiceInterface and ServiceStack.Text (all in version 3.9.55.0)

    It made no difference.

     

  • Martin 181 posts 740 karma points
    Dec 12, 2014 @ 18:16
    Martin
    0

    That's odd. Oh well. I will try to install it into an application later to night. Have some other uCommerce stuff as well I want to test :D

  • René Nissen 15 posts 96 karma points
    Dec 13, 2014 @ 12:26
    René Nissen
    0

    That sounds great. I am looking forward to hear about your conclusion...

  • Martin 181 posts 740 karma points
    Dec 13, 2014 @ 13:39
    Martin
    100

    Hi René,

    It got a bit later than I actually expected :) So here what you are supposed to do to make it work (or what I did to make it work).

    1. Go to Core.config -> Out comment "ServiceStackAppHost". This is used for running uCommerce web services and usually not need in an windows application.
    2. Copy the file Infralution.Licensing.dll into your bin folder as well.
    3. Run your application.

    This should be enough (it was for me).

    Happy to hear how it goes :)

    Best regards Martin

  • René Nissen 15 posts 96 karma points
    Dec 13, 2014 @ 14:05
    René Nissen
    1

    Hi Martin

    It works. You deserves the right to the title "Christmas Hero 2014" :-)

    Thank you for your efforts. I hope it will help others as well ...

    Best regards

    René

Please Sign in or register to post replies

Write your reply to:

Draft