[FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
[FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
[ComponentActivatorException: ComponentActivator: could not instantiate UCommerce.EntitiesV2.SoftDeletableRepository`1[[UCommerce.EntitiesV2.PriceGroup, UCommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]]
[FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
[FluentConfigurationException: An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.
[ComponentActivatorException: ComponentActivator: could not instantiate UCommerce.EntitiesV2.SoftDeletableRepository`1[[UCommerce.EntitiesV2.PriceGroup, UCommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]]
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.
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 :)
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:
Builds fine but when running the code it crash's not sure what the problem is to be honest.
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
Backend ucommerce tab is also completely empty nothing is there, (and the build is working on production) :S
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.
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 :)
Thanks for posting the answer.
is working on a reply...