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.

  • Jais Edelmann 45 posts 126 karma points
    Jul 21, 2012 @ 19:26
    Jais Edelmann
    0

    UCommerce.EntitiesV2.PriceGroup Error

    No component for supporting the service UCommerce.Security.IUserService was found

     

    Source error:

    _priceGroup = PriceGroup.SingleOrDefault(x => x.Name == ConfigurationManager.AppSettings["priceGroupName"].ToString()) ?? new PriceGroup();

    Stack Trace: 

    [ComponentNotFoundException: No component for supporting the service UCommerce.Security.IUserService was found]
       Castle.MicroKernel.DefaultKernel.Resolve(Type service) +140
       Castle.Windsor.WindsorContainer.Resolve(Type service) +40
       Castle.Windsor.WindsorContainer.Resolve() +105
       UCommerce.Infrastructure.ObjectFactory.Resolve() +99
       UCommerce.EntitiesV2.Listeners.AuditEventListener..ctor() +51
       UCommerce.EntitiesV2.SessionProvider.GetInsertUpdateEventListener() +79
       UCommerce.EntitiesV2.SessionProvider.ApplyEventListeners(Configuration obj) +222
       UCommerce.EntitiesV2.SessionProvider.BuildSchema(Configuration obj) +31
       FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration() +431
    [FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
    ]
       FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration() +580
       FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() +63
    [FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
    ]
       FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() +121
       UCommerce.EntitiesV2.SessionProvider.CreateSessionFactory(Boolean enableCache, String cacheProvider) +582
       UCommerce.EntitiesV2.SessionProvider.GetSession() +190
       UCommerce.EntitiesV2.Repository`1..ctor(ISessionProvider sessionProvider) +48
       UCommerce.EntitiesV2.SoftDeletableRepository`1..ctor(ISessionProvider sessionProvider) +350
    [TargetInvocationException: Exception has been thrown by the target of an invocation.]
       System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0
       System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72
       System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +318
       System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) +19
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.FastCreateInstance(Type implType, Object[] arguments, Type[] signature) +193
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, Object[] arguments, Type[] signature) +639
    [ComponentActivatorException: ComponentActivator: could not instantiate UCommerce.EntitiesV2.SoftDeletableRepository`1[[UCommerce.EntitiesV2.PriceGroup, UCommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]]
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, Object[] arguments, Type[] signature) +940
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) +113
       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) +43
       Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context) +44
       Castle.MicroKernel.Lifestyle.AbstractLifestyleManager.Resolve(CreationContext context) +40
       Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleManager.Resolve(CreationContext context) +300
       Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired) +149
       Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context, Boolean instanceRequired) +46
       Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context) +41
       Castle.MicroKernel.Handlers.DefaultGenericHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired) +217
       Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context, Boolean instanceRequired) +46
       Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context) +41
       Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments) +150
       Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service) +41
       Castle.MicroKernel.DefaultKernel.Resolve(Type service) +177
       Castle.Windsor.WindsorContainer.Resolve(Type service) +40
       Castle.Windsor.WindsorContainer.Resolve() +105
       UCommerce.Infrastructure.ObjectFactory.Resolve() +99
       UCommerce.EntitiesV2.PriceGroup.GetRepo() +68
       UCommerce.EntitiesV2.PriceGroup.SingleOrDefault(Expression`1 expression) +33
       www.uniqueindretning.dk.masterpages.Forside.Page_Load(Object sender, EventArgs e) in C:\Development\Uniqueindretning\www.uniqueindretning.dk\src\masterpages\Forside.master.cs:31
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +91
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Control.LoadRecursive() +146
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

  • Jais Edelmann 45 posts 126 karma points
    Jul 21, 2012 @ 19:27
    Jais Edelmann
    0

    Builds fine but when running the code it crash's not sure what the problem is to be honest.

  • Jais Edelmann 45 posts 126 karma points
    Jul 24, 2012 @ 11:42
    Jais Edelmann
    0

    Now i get 

    Castle.MicroKernel.ComponentNotFoundException: No component for supporting the service UCommerce.Security.IUserService was found

     

    Source error:

    Line 31:             List<UCommerce.EntitiesV2.Product> _productList = new List<UCommerce.EntitiesV2.Product>();

     

    Stack:

    [ComponentNotFoundException: No component for supporting the service UCommerce.Security.IUserService was found]

       Castle.MicroKernel.DefaultKernel.Resolve(Type service) +129

       Castle.Windsor.WindsorContainer.Resolve(Type service) +13

       Castle.Windsor.WindsorContainer.Resolve() +62

       UCommerce.Infrastructure.ObjectFactory.Resolve() +57

       UCommerce.EntitiesV2.SessionProvider.GetInsertUpdateEventListener() +87

       UCommerce.EntitiesV2.SessionProvider.ApplyEventListeners(Configuration obj) +130

       UCommerce.EntitiesV2.SessionProvider.BuildSchema(Configuration obj) +13

       FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration() +285

     

    [FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.

     

    ]

       FluentNHibernate.Cfg.FluentConfiguration.BuildConfiguration() +384

       FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() +39

     

    [FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.

     

    ]

       FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() +69

       UCommerce.EntitiesV2.SessionProvider.CreateSessionFactory(Boolean enableCache, String cacheProvider) +505

       UCommerce.EntitiesV2.SessionProvider.GetSession() +131

       UCommerce.EntitiesV2.SoftDeletableRepository`1..ctor(ISessionProvider sessionProvider) +217

     

    [TargetInvocationException: Exception has been thrown by the target of an invocation.]

       System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +0

       System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) +72

       System.Reflection.RuntimeConstructorInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +318

       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.FastCreateInstance(Type implType, Object[] arguments, Type[] signature) +81

       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, Object[] arguments, Type[] signature) +174

     

    [ComponentActivatorException: ComponentActivator: could not instantiate UCommerce.EntitiesV2.SoftDeletableRepository`1[[UCommerce.EntitiesV2.PriceGroup, UCommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]]

       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, Object[] arguments, Type[] signature) +346

       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) +59

       Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) +20

       Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context) +16

       Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleManager.Resolve(CreationContext context) +129

       Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired) +98

       Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context, Boolean instanceRequired) +17

       Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context) +12

       Castle.MicroKernel.Handlers.DefaultGenericHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired) +135

       Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context, Boolean instanceRequired) +17

       Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context) +12

       Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments) +88

       Castle.MicroKernel.DefaultKernel.Resolve(Type service) +53

       Castle.Windsor.WindsorContainer.Resolve(Type service) +13

       Castle.Windsor.WindsorContainer.Resolve() +62

       UCommerce.Infrastructure.ObjectFactory.Resolve() +57

       UCommerce.EntitiesV2.PriceGroup.GetRepo() +45

       UCommerce.EntitiesV2.PriceGroup.SingleOrDefault(Expression`1 expression) +11

       www.uniqueindretning.dk.masterpages.Forside.Page_Load(Object sender, EventArgs e) in C:\Development\Uniqueindretning\www.uniqueindretning.dk\src\masterpages\Forside.master.cs:31

       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14

       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35

       System.Web.UI.Control.OnLoad(EventArgs e) +91

       System.Web.UI.Control.LoadRecursive() +74

       System.Web.UI.Control.LoadRecursive() +146

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

     

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

     

     

  • Jais Edelmann 45 posts 126 karma points
    Jul 24, 2012 @ 12:31
    Jais Edelmann
    0

    Backend ucommerce tab is also completely empty nothing is there, (and the build is working on production) :S

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 24, 2012 @ 22:31
    Søren Spelling Lund
    0

    Looks like your components.config is from an older version of uCommerce. Make sure that it contains a reference for IUserService in there. You can take a look at the default from the package zip in /umbraco/ucommerce/configuration/components.config.

  • Jais Edelmann 45 posts 126 karma points
    Jul 26, 2012 @ 16:18
    Jais Edelmann
    0

    This has been fixed now, apprently the codepack i got had mixed dll's with mixed umbraco and ucommerce files so it was abit of a hazzle to get running but got it up and running now, cant see anything in the media lib of umbraco but that doesent really have anything todo with ucommerce, thanks for your help though Søren, even though you are on vacation :)

  • Søren Spelling Lund 1797 posts 2786 karma points
    Aug 07, 2012 @ 10:46
    Søren Spelling Lund
    0

    Thanks for posting the answer.

Please Sign in or register to post replies

Write your reply to:

Draft