I am getting this error on my local machine, but not in the site live:
Error Loading Razor Script (file: ) ComponentActivator: could not instantiate UCommerce.EntitiesV2.SoftDeletableRepository`1[[UCommerce.EntitiesV2.ProductCatalog, UCommerce, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]] at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.CreateInstance(CreationContext context, Object[] arguments, Type[] signature) at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.Instantiate(CreationContext context) at Castle.MicroKernel.ComponentActivator.DefaultComponentActivator.InternalCreate(CreationContext context) at Castle.MicroKernel.ComponentActivator.AbstractComponentActivator.Create(CreationContext context) at Castle.MicroKernel.Lifestyle.PerWebRequestLifestyleManager.Resolve(CreationContext context) at Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired) at Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context, Boolean instanceRequired) at Castle.MicroKernel.Handlers.DefaultGenericHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired) at Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context, Boolean instanceRequired) at Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments) at Castle.Windsor.WindsorContainer.Resolve[T]() at UCommerce.EntitiesV2.ProductCatalog.All() at ASP.ShopHelpers.GetCurrentProductCatalog() in e:\Umbraco\CombatStress\App_Code\ShopHelpers.cshtml:line 52 at ASP._Page_macroscripts_shop_home_cshtml.Execute() in e:\Umbraco\CombatStress\macroScripts\Shop-Home.cshtml:line 4 at System.Web.WebPages.WebPageBase.ExecutePageHierarchy() at System.Web.WebPages.WebPage.ExecutePageHierarchy() at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage) at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
I tried checking local and live sites differences and reached no conclusion.
I also went further and downloaded the live site and live database and put them on a test local IIS site but the error still happens!!! (the only change made was the SQL Server instance in the connection string)
Please can anyone help me find a solution to this? I have been almost all day tried to figure this out and nothing.
uCommerce can't instantiate product catalog
I am getting this error on my local machine, but not in the site live:
I checked this question and tried to do that to no avail: http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/33897-UCommerce-just-selfdestructed
I tried checking local and live sites differences and reached no conclusion.
I also went further and downloaded the live site and live database and put them on a test local IIS site but the error still happens!!! (the only change made was the SQL Server instance in the connection string)
Please can anyone help me find a solution to this? I have been almost all day tried to figure this out and nothing.
Thanks,
Fabio
The solution to this problem is:
I had to update the uCommerce connection string as well.
How is it possible to throw an exception like this when the connection string is wrong?!
Hope this helps me someone in the future.
Hi Fabio,
Thanks for being awesome and posting your findings on the forum.
I will look into why it's throwing a non-sensical error due to wrong connection string. It should make more sense than that.
Which version of uCommerce did you see this behavior with?
Hi Soren,
It's version 4.7.2.
4.7.2 is the version of Umbraco. What's the version of uCommerce?
ucomerce.dll v 1.0.0.0
The solution to this problem is:
I had to update the uCommerce connection string as well.
How is it possible to throw an exception like this when the connection string is wrong?!
Hope this helps me someone in the future.
thanks
is working on a reply...