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.
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
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).
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:
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
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).
Go to Core.config -> Out comment "ServiceStackAppHost". This is used for running uCommerce web services and usually not need in an windows application.
Copy the file Infralution.Licensing.dll into your bin folder as well.
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é
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
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é
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).
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
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
I have just added ServiceStack, ServiceStack.Common, ServiceStack.ServiceInterface and ServiceStack.Text (all in version 3.9.55.0)
It made no difference.
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
That sounds great. I am looking forward to hear about your conclusion...
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).
This should be enough (it was for me).
Happy to hear how it goes :)
Best regards Martin
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é
is working on a reply...