Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I get the following error when trying to use:
var basket = TransactionLibrary.GetBasket(true);
Error:
ComponentActivator: could not proxy UCommerce.Transactions.TransactionLibraryInternal","stackTrace":"[Basket: 26-06-2014 13:11:47]:\n[REQUEST: {}]\nCastle.MicroKernel.ComponentActivator.ComponentActivatorException: ComponentActivator: could not proxy UCommerce.Transactions.TransactionLibraryInternal ---> System.ArgumentException: System.Decimal is not a supported constant type.\r\n at System.Reflection.Emit.TypeBuilder.SetConstantValue(ModuleBuilder module, Int32 tk, Type destType, Object value)\r\n at Castle.DynamicProxy.Generators.Emitters.MethodEmitter.DefineParameters(ParameterInfo[] parameters)\r\n at Castle.DynamicProxy.Contributors.ClassProxyTargetContributor.CreateCallbackMethod(ClassEmitter emitter, MethodInfo methodInfo, MethodInfo methodOnTarget)\r\n at Castle.DynamicProxy.Contributors.ClassProxyTargetContributor.BuildInvocationType(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options)\r\n at Castle.DynamicProxy.Contributors.ClassProxyTargetContributor.GetMethodGenerator(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options, OverrideMethodDelegate overrideMethod)\r\n at Castle.DynamicProxy.Contributors.CompositeTypeContributor.ImplementMethod(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options, OverrideMethodDelegate overrideMethod)\r\n at Castle.DynamicProxy.Contributors.CompositeTypeContributor.Generate(ClassEmitter class, ProxyGenerationOptions options)\r\n at Castle.DynamicProxy.Generators.ClassProxyGenerator.GenerateType(String name, Type[] interfaces, INamingScope namingScope)\r\n at Castle.DynamicProxy.Generators.BaseProxyGenerator.ObtainProxyType(CacheKey cacheKey, Func`3 factory)\r\n at Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(Type classToProxy, Type[] additionalInterfacesToProxy, ProxyGenerationOptions options, Object[] constructorArguments, IInterceptor[] interceptors)\r\n at Castle.Windsor.Proxy.DefaultProxyFactory.Create(IKernel kernel, Object target, ComponentModel model, CreationContext context, Object[] constructorArguments)\r\n at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, ConstructorCandidate constructor, Object[] arguments)\r\n --- End of inner exception stack trace ---\r\n at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, ConstructorCandidate constructor, Object[] arguments)\r\n at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context)\r\n at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context, Burden burden)\r\n at Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.CreateInstance(CreationContext context, Boolean trackedExternally)\r\n at Castle.MicroKernel.Lifestyle.ScopedLifestyleManager.<>c__DisplayClass1.b__0(Action`1 afterCreated)\r\n at Castle.MicroKernel.Lifestyle.Scoped.DefaultLifetimeScope.GetCachedInstance(ComponentModel model, ScopedInstanceActivationCallback createInstance)\r\n at Castle.MicroKernel.Lifestyle.ScopedLifestyleManager.Resolve(CreationContext context, IReleasePolicy releasePolicy)\r\n at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden)\r\n at Castle.MicroKernel.Handlers.DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired)\r\n at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments, IReleasePolicy policy)\r\n at Castle.MicroKernel.DefaultKernel.Castle.MicroKernel.IKernelInternal.Resolve(Type service, IDictionary arguments, IReleasePolicy policy)\r\n at Castle.Windsor.WindsorContainer.Resolve[T]()\r\n at UCommerce.Api.TransactionLibrary.GetBasket(Boolean create)\r\n at Vertica.PeterJustesen.Portal.WebApplication.Orders.Services.CheckoutService.Get(Basket request) in c:\\Code\\pj.dk\\trunk\\src\\Portal.WebApplication\\Orders\\Services\\CheckoutService.cs:line 46\r\n at ServiceStack.ServiceHost.ServiceRunner`1.Execute(IRequestContext requestContext, Object instance, TRequest request)
I am trying to call it from a ServiceStack service, but it is working fine when calling it from:
var basket = SiteContext.Current.OrderContext.GetBasket(true);
I am using Sitecore with uCommerce v. 6.0.3.14171
We solved it by removing the ExceptionLoggingInterceptor in the TransactionLibraryInternal component defined in Core.config:
<interceptors> <interceptor>${ExceptionLoggingInterceptor}</interceptor> </interceptors>
But it seems to be an error.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
uCommerce TransactionLibrary Castle.Windsor error
I get the following error when trying to use:
Error:
I am trying to call it from a ServiceStack service, but it is working fine when calling it from:
I am using Sitecore with uCommerce v. 6.0.3.14171
We solved it by removing the ExceptionLoggingInterceptor in the TransactionLibraryInternal component defined in Core.config:
But it seems to be an error.
is working on a reply...