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.

  • Terry Clancy 204 posts 944 karma points
    Nov 05, 2014 @ 08:27
    Terry Clancy
    0

    Issues installing uCommerce uCommerce for Umbraco 7 + uCommerce demo store

    Hi uCommerce folk,

    So I am getting very familiar with (and a little frustrated)  installing Umbraco + uCommerce for Umbraco 7 + uCommerce demo store :-)   I have done that whole process from scratch 3 times tonight !!

    I am using Umbraco 7.1.8   installed into Visual Studio using NuGet and run from Visual Studio. I am also using  SQL Server 2012

    During each attempt the Umbraco install goes well but I run into problems installing the uCommerce packages, I think the main problem is with the Demo Store but I am not sure. The last attempt went pretty well but when the whole process is finished and after I have "saved and published" all the  all the uCommerce content pages that have been added (Shop, Catalog, Cart, Search, Emails)  I try to navigate to the Catalog Page using the "Link to document" on the Catalog / Proerties page and  I get the following error in VS:

    >>>>>>>>>>

    System.NullReferenceException was unhandled by user code
      HResult=-2147467261
      Message=Object reference not set to an instance of an object.
      Source=App_Web_catalog.cshtml.4b7a33be.jl-2isju
      StackTrace:
           at ASP._Page_macroScripts_uCommerce_Catalog_cshtml.Execute() in c:\Clancy\A_ClancyCom\Dev\ClancyCom3\ClancyCom3\macroScripts\uCommerce\Catalog.cshtml:line 10
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
           at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)
           at System.Web.WebPages.WebPage.ExecutePageHierarchy()
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer)
           at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
           at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
      InnerException:

    <<<<<<<<<<

    If I then press continue I get to an "Avenue Clothing" page  but in the main body of the page under "Shop / Catalog" I also get the following error message:

    >>>>>>>>>>

    Error loading MacroEngine script (file: uCommerce/Catalog.cshtml)

    <<<<<<<<<

    I then went looking for 

    c:\Clancy\A_ClancyCom\Dev\ClancyCom3\ClancyCom3\macroScripts\uCommerce\Catalog.cshtml

    And found that file and directoty, but they were not "included" in the Visual Studio Project (greyed out in Solution Explorer".  Furthermore the majority of other files and folders added during the Umbraco install were also not included in the Visual Studio Project.  So I then went crazy and "included" everyting I could see in the Visual Studio Project.

    I then ran Umbraco again and got this error:

    >>>>>>>>>>

    Server Error in '/' Application.

    Could not load file or assembly 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

     

     

    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: System.IO.FileLoadException: Could not load file or assembly 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Source Error:

     

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Assembly Load Trace: The following information can be helpful to determine why the assembly 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=null' could not be loaded.

     

    === Pre-bind state information ===
    LOG: DisplayName = log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=null
     (Fully-specified)
    LOG: Appbase = file:///C:/Clancy/A_ClancyCom/Dev/ClancyCom3/ClancyCom3/
    LOG: Initial PrivatePath = C:\Clancy\A_ClancyCom\Dev\ClancyCom3\ClancyCom3\bin
    Calling assembly : Umbraco.Core, Version=1.0.5394.16131, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Clancy\A_ClancyCom\Dev\ClancyCom3\ClancyCom3\web.config
    LOG: Using host configuration file: C:\Users\v-terrcl\Documents\IISExpress\config\aspnet.config
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
    LOG: Attempting download of new URL file:///C:/Users/v-terrcl/AppData/Local/Temp/Temporary ASP.NET Files/root/277dd86a/beabdf32/log4net.DLL.
    LOG: Attempting download of new URL file:///C:/Users/v-terrcl/AppData/Local/Temp/Temporary ASP.NET Files/root/277dd86a/beabdf32/log4net/log4net.DLL.
    LOG: Attempting download of new URL file:///C:/Clancy/A_ClancyCom/Dev/ClancyCom3/ClancyCom3/bin/log4net.DLL.
    WRN: Comparing the assembly name resulted in the mismatch: PUBLIC KEY TOKEN
    ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.
    


    Stack Trace:

     

    [FileLoadException: Could not load file or assembly 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       Umbraco.Core.Logging.LogHelper.Debug(Type type, String generateMessageFormat, Func`1[] formatItems) +0
       Umbraco.Core.DisposableTimer.DebugDuration(Type loggerType, String startMessage, String completeMessage) +166
       Umbraco.Core.DisposableTimer.DebugDuration(String startMessage, String completeMessage) +109
       Umbraco.Core.CoreBootManager.Initialize() +154
       Umbraco.Web.WebBootManager.Initialize() +69
       Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +151
       Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e) +40
    
    [HttpException (0x80004005): Could not load file or assembly 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9916613
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296
    
    [HttpException (0x80004005): Could not load file or assembly 'log4net, Version=1.2.11.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9930508
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254
    

     


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

     

    <<<<<<<<<<    

    All that leaves me wondering what to do next.   Continueing to reinstall from strach is time consuming and I am not sure doing it again and again will help.  ANy suggestions would be REALLY appreciated.

     

    Thanks very much

     

    Terry Clancy

     

     

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Nov 05, 2014 @ 08:36
    Dennis Aaen
    0

    HI Terry,

    Could it be the same issue you have as Jochem. Try to see this post http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/46597-uCommerce-dll-issue

    Hope this helps,

    /Dennis

  • Terry Clancy 204 posts 944 karma points
    Nov 05, 2014 @ 17:55
    Terry Clancy
    0

    Thanks Dennis

     

    The solution to the post at http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/46597-uCommerce-dll-issue

    mentioned the following :

    >>>>>>>>>>>>

    Hi Jochem,

    There are two different versions of the "log4net" assembly in play here.

    The one that cannot be found is version 1.2.11.0 without a public key token. This is the one found in "bin" and used by Umbraco.

    The other, used by uCommerce, is 1.2.11.0 with a public key token. This is located in "bin/ucommerce".

    These are two different assemblies. Both needs to be present. Looks like you might be missing one of them.

    Kind regards,

    Jesper

    <<<<<<<<

    I just checked and found that log4net.bin  exists in both   "bin"  and in "bin/ucommerce" although both are the same size (282KB),  File Description (Apache log4net for .NET Framework 4.0), File Version (1.2.11.0), and Product Version (1.2).   Do you think this is a problem ???

    Any further thoughts would be appreciated.

    Terry Clancy

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Nov 05, 2014 @ 19:54
    Dennis Aaen
    0

    Hi Terry,

    Don´t know if this as any influence, but I have just tried set up a Umbraco 7.1.8 on my local machine, and after that I installed the uCommerce package, and the Razor store with no problem. You are saying that you log4net dll´s have the same filesize.

    If I take a look on my log4net dll´s the one that is in the bin folder has a size of 252KB, and the one that is in the /bin/uCommerce folder has a filesize of 282 like yours.

    /Dennis

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Nov 05, 2014 @ 20:10
    Dennis Aaen
    0

    Hi Terry,

    Something could indicate that your installation are using the log4net dll from the /bin/ucommerce folder in the /bin folder too. I just treid overwrite the log4net dll from the bin with the log4net dll from the /bin/ucommerce folder, and now I get the error like you.

    So my suggestion would be try download a fresh version of Umbraco 7.1.8, and copy the log4net dll from the fresh install into your bin folder, and see if it solve your probem. I tried copy back the log4net dll from the fresh Umbraco installation into the /bin folder, and my uCommerce site works again.

    Hope this helps,

    /Dennis

  • Terry Clancy 204 posts 944 karma points
    Nov 06, 2014 @ 07:31
    Terry Clancy
    0

    Hi Dennis,

    Your suggestion indeed resolved the specific error mentoned above - thank you.

    However I immediately got a very similar error with Lucine.Net.dll.   Again it appears that the uCommerce installation had coped it's version of the dll not only into /bin/ucommerce but also into /bin .  So I copied a fresh version from the Umbraco 8.18 download into the /bin directory and the site came up much better and I got the see the main page of the Avenue Clothing Sample Store.  Unfortunatley the backoffice was unstable and hung as a clicked around.

    So, assuming that there may be other similar problems I copied the entire contents from the Umbraco 8.18 download  /bin folder into my project's /bin folder to overwrite any Umbroco core files.

    When I then tested the site I got the following error, so now, I can not start the site:

    >>>>>>>>>>

    System.NullReferenceException was unhandled by user code
      HResult=-2147467261
      Message=Object reference not set to an instance of an object.
      Source=App_Web_catalog.cshtml.4b7a33be.6njuwqgw
      StackTrace:
           at ASP._Page_macroScripts_uCommerce_Catalog_cshtml.Execute() in c:\Clancy\A_ClancyCom\Dev\ClancyCom3\ClancyCom3\macroScripts\uCommerce\Catalog.cshtml:line 10
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
           at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)
           at System.Web.WebPages.WebPage.ExecutePageHierarchy()
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer)
           at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
           at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
      InnerException:

    <<<<<<<<<<

    Thanks very much for you help but it seems that there are problems with the uCommerce installation on Umbraco 7.1.8 - although I do note that you (Dennis)  tested with  7.1.8 and found no problem.  It is too late tonight but I hope to get time to start yet another installation from scratch tomorrow and I will take note of the sizes of bin\log4net  and bin\lucene.net.dll at each step to see if I can replicate the problem and if so identify the offending step.

    .........

    One more thing .........  When installing the Demo Store, the installation has two steps - step one seems to install the basic store store framework and then it says something like "next steps" and provides about 4 check boxes and a button to proceed.  When I perform that last step there is no clear indication when that process has ended.  it just seems to stop with no notification.  Should I be getting a positive indication that that final step has completed ?

    Thanks

    Terry

     

     

     

     

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Nov 06, 2014 @ 18:34
    Dennis Aaen
    0

    Hi Terry,

    When I install the uCommerce core package and the razor demo store I use the install local package option. After installation of the uCommerce core package, my browser is reloading, and I get this message, installation is complete. Thank you for choosing uCommerce. All you have to do is refresh your browser, and uCommerce will appear in the applications tray. Have fun!

    After that I install the demo razor store again I use the install the local package option. As you said, the demo store, the installation has two steps - step one seems to install the basic store store framework and then it says something like "next steps" and provides about 4 check boxes and a button to proceed.

    When the installation is done with the razor demo store, I get a confirmation page, that says: Catalogue Added Thanks. You're all done and now have a demo store up and running, and on the same page, I can subscribe to the newsletter of uCommerce.

    Hope this helps,

    /Dennis

     
  • Terry Clancy 204 posts 944 karma points
    Nov 07, 2014 @ 09:00
    Terry Clancy
    0

    Hi Dennis,

    Commenting ( at TC>>>>)  on your last two paragraphs

    Dennis said >>>>>   After that I install the demo razor store again I use the install the local package option. As you said, the demo store, the installation has two steps - step one seems to install the basic store store framework and then it says something like "next steps" and provides about 4 check boxes and a button to proceed.

    TC>>>>> Got that, and pressed the button.  Note however  I can subscribe to the newsletter of uCommerce on this page

    Dennis said >>>>> When the installation is done with the razor demo store, I get a confirmation page, that says: Catalogue Added Thanks. You're all done and now have a demo store up and running, and on the same page, I can subscribe to the newsletter of uCommerce.

    TC>>>>> I do not think I saw this page ???  Maybe I needed a browser refresh - I will try next time.

    Anyway,   I very carfully reinstalled Umbraco & uCommerce & uCommerce Demo Store from Scratch and did NOT see a repeat of the issue described above with uCommerce versions of DLLs ending in in the Umbraco bin directory. What can I say ? Not sure what happended, perhaps it was an accidental drag & drop (in which case sorry) although I find that had to imagine.

    Anyway moving on......  The installation when well and all seemed ok with lots of clicking around back office without issue. Then I tried to access the Catalog page using the BackOffice / Content / Catalog / Properties / Link to document   and got the following error

    >>>>>>>>>

    System.NullReferenceException was unhandled by user code
      HResult=-2147467261
      Message=Object reference not set to an instance of an object.
      Source=App_Web_catalog.cshtml.4b7a33be.sordh2y7
      StackTrace:
           at ASP._Page_macroScripts_uCommerce_Catalog_cshtml.Execute() in c:\Clancy\A_ClancyCom\Dev\ClancyCom3\ClancyCom3\macroScripts\uCommerce\Catalog.cshtml:line 10
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
           at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)
           at System.Web.WebPages.WebPage.ExecutePageHierarchy()
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer)
           at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
           at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
      InnerException:

    <<<<<<<<<<


    With the following in the VS Output WIndow

    >>>>>>>>>>

    The thread 0x1164 has exited with code 259 (0x103).
    Exception was thrown at line 15, column 384 in http://www.google-analytics.com/ga.js
    0x800a139e - JavaScript runtime error: aborted
    Exception was thrown at line 2, column 60018 in http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js
    0x800a139e - JavaScript runtime error: SyntaxError
    Exception was thrown at line 37, column 60610 in http://localhost:35248/96ef5b2caafc4ba4bf75448e830baac7/browserLink
    0x800a139e - JavaScript runtime error: SyntaxError
    Exception was thrown at line 37, column 60451 in http://localhost:35248/96ef5b2caafc4ba4bf75448e830baac7/browserLink
    0x800a139e - JavaScript runtime error: SyntaxError
    The thread 0x13e4 has exited with code 259 (0x103).

    >>>>>>>

    Given these messages I thougth Visual Studio browserLink may be a problem so I disabed it and then got the following similar error :

    >>>>>>>>>>

    System.NullReferenceException was unhandled by user code
      HResult=-2147467261
      Message=Object reference not set to an instance of an object.
      Source=App_Web_catalog.cshtml.4b7a33be.okq-g2zg
      StackTrace:
           at ASP._Page_macroScripts_uCommerce_Catalog_cshtml.Execute() in c:\Clancy\A_ClancyCom\Dev\ClancyCom3\ClancyCom3\macroScripts\uCommerce\Catalog.cshtml:line 10
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy()
           at System.Web.WebPages.WebPage.ExecutePageHierarchy(IEnumerable`1 executors)
           at System.Web.WebPages.WebPage.ExecutePageHierarchy()
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage)
           at System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer)
           at umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
           at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
      InnerException:


    <<<<<<<<<<

    With the following in the VS Output WIndow

    >>>>>>>>>

     

     

     

     

     

     

    A first chance exception of type 'System.NullReferenceException' occurred in App_Web_catalog.cshtml.4b7a33be.okq-g2zg.dll

     

    'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/13/ROOT-1-130598187991029464): Loaded 'C:\WINDOWS\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'.

     

    The thread 0x206c has exited with code 259 (0x103).

     

    The thread 0x39c0 has exited with code 259 (0x103).

     

    The thread 0x2510 has exited with code 259 (0x103).

     

    The thread 0x3454 has exited with code 259 (0x103).

     

    The thread 0x2648 has exited with code 259 (0x103).

     

    Exception was thrown at line 15, column 384 in http://www.google-analytics.com/ga.js

     

    0x800a139e - JavaScript runtime error: aborted

     

     

     

     

     

     

    <<<<<<<<<<

    The offending line 10 of c:\Clancy\A_ClancyCom\Dev\ClancyCom3\ClancyCom3\macroScripts\uCommerce\Catalog.cshtml is shown below at >>>Line 10>>>.

    Visual Studio debugging feature indicated that  "category" was NULL which suggests that the line  "Category category = SiteContext.Current.CatalogContext.CurrentCategory;"  below was unsuccessfull

     

     

    @{

    Category category = SiteContext.Current.CatalogContext.CurrentCategory;

    }

    <divclass="row-fluid">

    <divclass="hero-unit">

    >>>Line 10>>>   @if (!string.IsNullOrEmpty(category.ImageMediaId))

    }

    dynamic mediaItem = newDynamicMedia(category.ImageMediaId);

    <imgsrc="@mediaItem.umbracoFile"alt="@category.DisplayName()"/>

    }

    </div>

     

     

     

    Any suggeston as to what the problem might be here would be very much appreciated.  I just want to get a working site so I can learn more about uCommerce.

    Sincerely

     

    Terry Clancy

     

     

     

  • Terry Clancy 204 posts 944 karma points
    Nov 10, 2014 @ 03:29
    Terry Clancy
    0

    This thread includes both resolved and outstanidng issues intermingled.

    Because of this I am terminating this thread and starting a new thread in which I can more simply layout the outstanding issues.

    The New thread is at http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/57943-Errors-installing-uCommerce-and-uCommerce-Demo-store 

    <EOF/>

     

Please Sign in or register to post replies

Write your reply to:

Draft