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.

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Apr 04, 2013 @ 11:32
    Jesper Ordrup
    0

    ucommerce and umbraco 6.0.3

    Hi,

    Install of ucommerce stops with the following error: Could not load file or assembly "log4net, version=1.2.11.0"
    I just installed an Umbraco6.0.3 (via nuget) in VS2012. First thing was to install the ucommerce package from our rep. 

     

    I found log4net assembly 1.2.10.0 in bin? 
    Which 6.0.x versions is uCommerce compatible with?

     

    best
    Jesper

  • Medjeti 75 posts 126 karma points
    Apr 04, 2013 @ 17:32
    Medjeti
    0

    I got the same error upgrading an existing installation to the latest package on Umbraco 4.11.4.

    Apparently Umbraco is using a newer version of log4net (v1.2.11) than uCommerce (v1.2.10), which causes this error.

    I managed to get it fixed by throwing Umbraco's original log4net.dll in the bin folder.

    However, now I'm getting the following error when I click on a category node:

    Server Error in '/' Application.


    Can't create component 'EditCategoryPresenter' as it has dependencies to be satisfied.
    EditCategoryPresenter is waiting for the following dependencies:

    Services:
    - UCommerce.Pipelines.IPipeline`1[[UCommerce.EntitiesV2.Category, UCommerce, Version=3.5.0.13091, Culture=neutral, PublicKeyToken=null]] which was not registered.

                 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.  Exception Details: Castle.MicroKernel.Handlers.HandlerException: Can't create component 'EditCategoryPresenter' as it has dependencies to be satisfied. 
    EditCategoryPresenter is waiting for the following dependencies:

    Services:
    - UCommerce.Pipelines.IPipeline`1[[UCommerce.EntitiesV2.Category, UCommerce, Version=3.5.0.13091, Culture=neutral, PublicKeyToken=null]] which was not registered.
    Source Error:
    [No relevant source lines]
     Source File:  c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\df51e2b1\91d7046\App_Web_editcategory.aspx.2a84e035.xhwi2bsy.0.cs    Line:  0 Stack Trace:
    [HandlerException: Can't create component 'EditCategoryPresenter' as it has dependencies to be satisfied. 
    EditCategoryPresenter is waiting for the following dependencies: 
    
    Services: 
    - UCommerce.Pipelines.IPipeline`1[[UCommerce.EntitiesV2.Category, UCommerce, Version=3.5.0.13091, Culture=neutral, PublicKeyToken=null]] which was not registered. 
    ]
       Castle.MicroKernel.Handlers.DefaultHandler.AssertNotWaitingForDependency() +168
       Castle.MicroKernel.Handlers.DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired) +88
       Castle.MicroKernel.Handlers.AbstractHandler.Resolve(CreationContext context, Boolean instanceRequired) +28
       Castle.MicroKernel.DefaultKernel.ResolveComponent(IHandler handler, Type service, IDictionary additionalArguments) +142
       Castle.Windsor.WindsorContainer.Resolve() +62
       UCommerce.Presentation.Web.Pages.EnsuredPresentedPage`2..ctor() +298
       ASP.umbraco_ucommerce_catalog_editcategory_aspx..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\df51e2b1\91d7046\App_Web_editcategory.aspx.2a84e035.xhwi2bsy.0.cs:0
       __ASP.FastObjectFactory_app_web_editcategory_aspx_2a84e035_xhwi2bsy.Create_ASP_umbraco_ucommerce_catalog_editcategory_aspx() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\df51e2b1\91d7046\App_Web_editcategory.aspx.2a84e035.xhwi2bsy.1.cs:0
       System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp) +174
       System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +42
       System.Web.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +490
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +375
    
     

    As the log4net error happened during installation I'm afraid the installation didn't finish properly.

    Any ideas?

  • Morten Skjoldager 440 posts 1499 karma points
    Apr 05, 2013 @ 09:41
    Morten Skjoldager
    0

    Hi Jesper,

    Did you install uCommerce 3.5 from the site? 

    What happens if you try Medjeti's way of simply adding Umbraco's version to the bin folder? 

     

    And hi Medjeti,

    I just installed umbraco 4.11.4 and ucommerce 3.5 no problems. I then upgraded to the newest version of Umbraco. Still no problem. Did you use Nuget ? 

  • Medjeti 75 posts 126 karma points
    Apr 05, 2013 @ 10:23
    Medjeti
    0

    Hi Morten,

    Thanks for your feedback.

    The error occurred when upgrading my existing uCommerce installation (3.0.5.13045) to the newest version through the package repository in the Umbraco backoffice.
    I didn't actually upgrade my Umbraco installation, which is still running 4.11.4.

    I suppose I could try upgrading through NuGet, but I would suspect running into the log4net error again, thus halting halfway through the installation again.

    Any ideas welcome.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 05, 2013 @ 14:14
    Søren Spelling Lund
    0

    Which exact version of 3.5 did you install? I double cheked the released package to verify that we're rolling out the correct version of log4net (1.2.11.0).

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Apr 05, 2013 @ 14:18
    Jesper Ordrup
    0

    Hi Morten,

    I installed ucommerce from the package repository directly from within Umbraco. I had another go at it following your suggestion. And it worked. What I did:

    1) Installed a new Umbraco 6.03 (via nuget) and finished the installation steps
    2) Made a copy of log4net.dll
    3) Started install of ucommerce package
    4) during the install I observed that log4net.dll was replaced. I immediatly copied the original back. 
    5) ucommerce installed finished sucessfully. YAY :)
    6) Installed the demo shop (razor). 

    The demo shop almost works but some calls fail with 404 not found:
    http://localhost:2628/ucommerceapi/Json/SyncReply/GetProductVariations
    http://localhost:2628/ucommerceapi/Json/SyncReply/GetVariantSkuFromSelection  
     

    best
    Jesper 

  • Morten Skjoldager 440 posts 1499 karma points
    Apr 05, 2013 @ 14:24
    Morten Skjoldager
    0

    Hi Jesper,

    Thanks for information. Please refer to Soren's post above and provide that information :) 

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Apr 05, 2013 @ 14:43
    Jesper Ordrup
    0

    Package says uCommerce 3.5.0.13094. Its the one active on our.

  • Medjeti 75 posts 126 karma points
    Apr 08, 2013 @ 10:33
    Medjeti
    0

    Yay, the old switcheroo did the trick - good one, Jesper!

    Sadly, I am now back at the exact error that made me upgrade in the first place.
    Categories show up fine now, but when I click a product on the Products tab I get the following:

    Server Error in '/' Application.


    Compilation Error

      Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.  Compiler Error Message: CS1502: The best overloaded method match for 'UCommerce.Web.UI.Catalog.EditProductVariants.GetVariantPriceEditorUrl(UCommerce.EntitiesV2.Product)' has some invalid arguments
    Source Error:
     
    Line 22:                             <asp:PlaceHolder runat="server" Visible="<%# ((Product)Container.DataItem).ProductId > 0 %>">
    Line 23:                                <div style="width:75px; display:table;">
    Line 24: <a href="#" onclick="UCommerceClientMgr.openModal('<%# GetVariantPriceEditorUrl((Product)Container.DataItem) %>', 'Edit Prices', 500,320); return false;"><img src="../images/ui/price.png" alt="Edit prices" /></a> Line 25:                                     <a href="#" onclick="UCommerceClientMgr.openModal('<%# GetVariantDescriptionEditorUrl((Product)Container.DataItem)%>', 'Edit Description', 650, 475); return false;"><img src="../images/ui/note_edit.png" alt="Edit description" /></a>
    Line 26:                                    <asp:ImageButton runat="server" ImageUrl="../images/ui/cross.png" CommandArgument="<%# ((Product)Container.DataItem).ProductId %>" CommandName="Delete" AlternateText="Delete" OnClientClick="return confirm_delete_variant();" Visible="<%# CanDeleteProduct()%>" />
    Source File: d:\Web\Umbraco_GreenComfort_FIX\Umbraco\ucommerce\Catalog\EditProductVariants.ascx    Line: 24 

    I think I have a pretty vanilla install, so I can't really see what sort of conflict might have triggered this.

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 08, 2013 @ 11:00
    Søren Spelling Lund
    0

    Hi Medjeti,

    The issue is that the install process didn't complete successfully so you're probably still running on the old version. Looking into fixing the root issue, which will get you up and running again.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 08, 2013 @ 11:25
    Søren Spelling Lund
    0

    Jesper,

    I have a silly question for you: Are you using SQL Server or SQL CE for the install?

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Apr 08, 2013 @ 11:26
    Jesper Ordrup
    0

    The real thing. No SQL CE here. 

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 08, 2013 @ 11:38
    Søren Spelling Lund
    0

    Do you have two mins for a chat on Skype? I'm at Soren.Spelling.Lund if you do.

  • Medjeti 75 posts 126 karma points
    Apr 08, 2013 @ 11:47
    Medjeti
    0

    Thanks, Søren.

    2 things: I did actually manage to finish the upgrade procedure using Jesper's trick. Also, I had this problem prior to upgrading: Everything was working, I was setting up product definitions and suddenly it didn't work. This led me to believe it might be related to using datatypes from Umbraco, but that's just a wild guess.

    Let me know if you need further info.

    Also, apologies for hijacking the thread...

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 08, 2013 @ 11:52
    Søren Spelling Lund
    0

    Medjeti,

    You can fix the dependency issue by replacing all the .config files with the ones named config.default in the /umbraco/ucommerce/configuration folder. Recycle app pool and you'll be up and running barring that nothing else needs manual tweaks :)

  • Medjeti 75 posts 126 karma points
    Apr 08, 2013 @ 12:01
    Medjeti
    0

    Thanks for your reply, Søren.

    It seems we're a bit out of sync, though: I managed to complete the upgrade process which fixed the dependency issue.

    I'm now struggling with the (probably unrelated) issue of an InvalidArgumentException in EditProductVariants.ascx as described above.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 08, 2013 @ 14:26
    Søren Spelling Lund
    0

    Seems like some of the DLLs or aspx/ascx were not properly updated. Probably due to the error during install. You could update the file in question manually by extracting it from the package zip.

  • Medjeti 75 posts 126 karma points
    Apr 08, 2013 @ 17:04
    Medjeti
    0

    Tried a full upgrade to 3.5.0.13098, still no luck :/

    I'm going to try to uninstall and reinstall the package and see how that works out.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 09, 2013 @ 11:59
    Søren Spelling Lund
    0

    Could you let me know the exact steps you go through when you do the clean install? We have tried to repro multiple times under multiple circumstances and are failing at it.

  • Medjeti 75 posts 126 karma points
    Apr 09, 2013 @ 13:28
    Medjeti
    0

    No luck with the uninstall/reinstall.

    I'm now giving it a go with a clean Umbraco install, hopefully everything will be smooth sailing from here on.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Apr 10, 2013 @ 09:49
    Søren Spelling Lund
    0

    Let me know how you get on.

  • Medjeti 75 posts 126 karma points
    Apr 17, 2013 @ 11:21
    Medjeti
    0

    So, this happened again for the third consecutive time. I got a little bit angry and managed to figure it out:

    It turns out my fellow developer has a helper file in App_Code called Product.cshtml - apparently this creates a global Product class which overrides every other class of the same name for the entire website. I thought this was a bit more water tight for compiled code, but the more you know...

    Thanks for your help, Søren, and sorry about the d'uh.

Please Sign in or register to post replies

Write your reply to:

Draft