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.

  • Fabio Milheiro 74 posts 136 karma points
    Jan 09, 2013 @ 20:00
    Fabio Milheiro
    0

    uCommerce can't instantiate product catalog

    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 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

  • Fabio Milheiro 74 posts 136 karma points
    Jan 10, 2013 @ 16:14
    Fabio Milheiro
    100

    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.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 14, 2013 @ 09:46
    Søren Spelling Lund
    0

    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.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 14, 2013 @ 09:48
    Søren Spelling Lund
    0

    Which version of uCommerce did you see this behavior with?

  • Fabio Milheiro 74 posts 136 karma points
    Jan 14, 2013 @ 10:37
    Fabio Milheiro
    0

    Hi Soren,

    It's version 4.7.2.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jan 21, 2013 @ 21:41
    Søren Spelling Lund
    0

    4.7.2 is the version of Umbraco. What's the version of uCommerce?

  • Fabio Milheiro 74 posts 136 karma points
    Jan 22, 2013 @ 18:09
    Fabio Milheiro
    0

    ucomerce.dll v 1.0.0.0

  • lj 81 posts 425 karma points
    Sep 05, 2013 @ 17:44
    lj
    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.

    ---------------------------------------------
    Hi i have exact same errror been at it all day.
    Could you please give more details of what you updated the connection string to

    thanks

Please Sign in or register to post replies

Write your reply to:

Draft