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.

  • Kim Søjborg Pedersen 71 posts 275 karma points
    Jun 21, 2013 @ 14:53
    Kim Søjborg Pedersen
    0

    Error when using UCommerce.Infrastructure

    var service = UCommerce.Infrastructure.ObjectFactory.Instance.Resolve<UCommerce.Transactions.IOrderService>();
    service.ChangeOrderStatus(order, os);

    Compiler Error Message: CS1705: Assembly 'UCommerce.Infrastructure, Version=3.6.1.13149, Culture=neutral, PublicKeyToken=null' uses 'Castle.Windsor, Version=3.2.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' which has a higher version than referenced assembly 'Castle.Windsor, Version=2.5.1.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc'

    What can I do?

  • Kent 30 posts 54 karma points
    Jun 21, 2013 @ 18:59
    Kent
    0

    You might try updating your Castle.Windsor assembly (and reference). I'm on uCommerce v3.6.1.13149 and have the same version of uCommerce.Infrastucture as you, but my Castle.Windsor is v3.2.0.2401

  • Morten Skjoldager 440 posts 1499 karma points
    Jun 28, 2013 @ 09:25
    Morten Skjoldager
    0

    Hi Kim,

    did you fix this using Kent's solution? Otherwise take a look here:

    Looks like you ran into DLL hell. In uCommerce we've refactored all our dependencies into bin/uCommerce/ so that we do not run into conflicts with other apllications in Umbraco. Howver it is not esay to get .NET framework to work as you want it to. For your problem there's a couple of solutions you can try.

    In version 3.6.3 there's a hotfix for exactly that problem. If you want to fix it now, there's two solutoins you can use:

    In your page where you use Infrastructure you have to explicitly reference your DLL with a register assemblt with fully qualified assembly information

    <%@RegisterAssembly=

    Another solution is to register the dll in web.config under:

    <compilation defaultLanguage="c#" debug="false" batch="false" targetFramework="4.0">

          <assemblies>

    Again you have to use the fully qualified name.

    Hope this helps.

    Regards 

    Morten

  • Kim Søjborg Pedersen 71 posts 275 karma points
    Jun 28, 2013 @ 09:46
    Kim Søjborg Pedersen
    0

    I updated umbraco and ucommerce and manually moved som old dll. that uCommerce left in bin after the update, somehow I got it to work but it was a pain...

  • Morten Skjoldager 440 posts 1499 karma points
    Jun 28, 2013 @ 09:59
    Morten Skjoldager
    0

    Sounds great.

    Morten

Please Sign in or register to post replies

Write your reply to:

Draft