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 for support.

  • Terry Clancy 176 posts 833 karma points
    Nov 10, 2014 @ 03:52
    Terry Clancy

    Errors installing uCommerce and uCommerce Demo store

    Dear uCommerce Folk,

    After installing Umbraco 7.1.8 and uCommerce and the uCommerce Demo Store I am getting an exception trying to access the Demo Store catalog  at http://localhost:50320/catalog/ .

    I have reinstalled Umbraco 7.1.8 and uCommerce and the uCommerce Demo Store from scratch over 8 times now and the Error / Exception is very reproducible.

    Please see below my entire installation procedure which I have included in case there is an obvious error or else to make it easier to replicate.

    I have highlighted key concerns and errors in Pink.

    Here are the steps I took:

    • Installed Umbraco

      • I installed Umbraco in Visual Studio using Nuget following instructions at

      • I applied “Include in Project” to all folders and files in the site root and in folders in the site root 

      • I ran Umbraco Site  in Debug mode and provided Name, Email, Password and using Customize Button specified Microsoft SQL Server (local) as Database with Login account with Default Schema of db_owner and role membership of db_ower.

      • I choose NOT to install any starter website.

    • Testing

      • Clicking around Umbraco Backoffice worked fine.

    • Reset

      • Stopped Visual Studio Debug session to recycle site

    • Installed

      • On Page Titled: “Install Package / Installing the package: uCommerce”

        • Clicked “Accept License” CheckBox

        • Clicked “Install Package” Button

      • Got to Page Titled: “Install Package / 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!”

    • Installed

      • Page Titled:  Install Package / Installing the package: Avenue Clothing Demo Store for uCommerce 6 - Razor”

        • Clicked “Accept License” Check Box

        • Clicked “Install Package” Button

      • Got to Page Titled:  Install Package / uCommerce Demo Razor Store,  Installation Complete” (Here)

        • Page included the following text

          • “What's installed?

            • Example Document Types

            • Example Templates (master pages)

            • An example site structure

            • A set of Scripting Files to display the catalogue”

          • “What next?

            • Install the example uCommerce configuration[?]

            • Install the example catalogue[?]

            • Delete the default uCommerce catalogue[?]

            • Publish  the installed pages

            • Install Button “

        • I pressed the Install Button

        • After pressing Install button Visual Studio’s output window recorded activity indication action but the web page never changed to indicate that that last phase of the installation has completed. SHOULD IT HAVE CHANGED TO CONFIM SUCCESSFUL COMPLETION? IS THIS NORMAL BEHAVIOUR?

    • Testing

      • I “Saved and Published” following content pages: Shop, Catalog, Cart, Search, Emails, Product, Address, Shipping, Payment, Preview, Confirmation

    • Restarted Umbraco

      • Stopped VS Debug session and restarted it to  recycle Umbraco

    • Testing

        • After restarting Umbraco Home page was visible (with picture of guy with canal in background) but no link to catalogue

        • Link to “Software” did not work

        • Link to “Support” did not work

        • No other links to other site pages on the Home page – this seems wrong or lame, not sure which?

      • Opened Backoffice (http://localhost:50320/umbraco )

        • Clicked around – seemed to be working OK

      • Used Content / Shop / Properties / Link to Document to open Home page

        • Worked OK (same comments about home page as above)

      • Used Content / Catalog / Properties / Link to Document to open Calalog page

        • GOT EXCEPTION (reproducible , I reinstalled everything > 5 times kept getting the same error):

    System.NullReferenceException was unhandled by user code


      Message=Object reference not set to an instance of an object.



           at ASP._Page_macroScripts_uCommerce_Catalog_cshtml.Execute() in c:\Clancy\A_ClancyCom\Dev\ClancyCom4\ClancyCom4\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)



    • Looking at the offending code from Catalog.cshtml  the exception occurred  in the line highlighted in Yellow.  This appears to have been caused by the line highlighted in Green assigning a Null value to “category”


    @using UCommerce.EntitiesV2

    @using UCommerce.Extensions

    @using UCommerce.Runtime

    @using umbraco.MacroEngines


        Category category = SiteContext.Current.CatalogContext.CurrentCategory;


    <div class="row-fluid">

        <div class="hero-unit">

            @if (!string.IsNullOrEmpty(category.ImageMediaId))


                dynamic mediaItem = new DynamicMedia(category.ImageMediaId);

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



    • Please let me know if you can help resolve this.

    • At this point I am not sure what to do next – if I cannot simply install uCommece Demo store then I do not have a platform to start development on. This is causing a delay in my project and I need to resolve ASAP or select another direction.

    Any  help would be greatly appreciated.



    Terry Clancy

  • Terry Clancy 176 posts 833 karma points
    Nov 12, 2014 @ 08:04
    Terry Clancy

    Dear uCommerce Folk,

    OK I have some more information on this problem.

    BTW I have now resinstalled everything from scratch AGAIN using the most recent versions:


    OK, so I have now watched the video titled "Getting Started - Installing the Razor demo store" at 

    • I was able to get to the screen show at time mark 48 seconds in that video - but never got beyond that screen in the installation process.
    • BUT I do NOT get to the screen shown at time mark  1:08 and so never get the opportunity to press the button "Assign Permissions"  (is that still required ?). 
    • I do get a screen similar to that at time mark 1:30
    • I do get a screen similar to that at time mark 1:45
    • BUT my home page is missing key components relative to that shown at time mark 1:54. Specifically
    • >>> I do not have the menu (Tops Formal Casual Shoes Accessories Ties Scarves) in the top left grey box
    • >>> I do not have anything under the hero graphic (Missing title "Welcome to Avenue Clothing" and everything underneath that).

    Beyond that I am still getting the errors as described earlier in this thread.

    All I am trying to do here is get the demo store going - any help would be appreciated.


    Terry Clancy





  • Morten Skjoldager 436 posts 1492 karma points
    Nov 12, 2014 @ 16:06
    Morten Skjoldager

    Hi Terry, thanks for the very detailed explanation. Unfortunately there's no real indication of what is going on here. However. We just corrected a bug associated to the demo store installer. But according to your descripttion you used the newest package - so all fine. The assign permissions is no longer applicable. Do you get any errors at all? It seems oddly that everything runs as it should, but the demo store is not installed properly.

  • Martin 181 posts 740 karma points
    Nov 12, 2014 @ 18:34

    Hi Terry,

    Could you try to setup an IIS website on your local machine and point it to your umbraco folder (the same as your solution/project folder). As I recall the IIS application pool is recycled but since you're using iisexpress it just shutsdown the iisexpress and perhaps that is causing this trouble.

    When I use uCommerce I install Umbraco via. nuget but I use the IIS for running the website and I have never had problems.
    (Just tried to install the razor store this way and it went fine as well) 

    Best regards

  • Terry Clancy 176 posts 833 karma points
    Nov 14, 2014 @ 18:35
    Terry Clancy


    Bingo that worked - thanks very much.

    Installing Umbraco using Visual Studio + nuget + and then IISExpress to setup database etc but then switching to Windows 8 IIS (pointing it at the VS Umbraco Project Folder) and running all the uCommerce installation steps from IIS (rather than IIS Express) works.

    Using that approach I get to the final screen which says

             Catalogue Added

                        Thanks. You're all done and now have a demo store up and running.


    I did not previously get to that screen.


    Thanks very much for you assistance with this - now I can party on uCommerce !!!


    Terry Clancy

  • Martin 181 posts 740 karma points
    Nov 15, 2014 @ 15:38

    Hi Terry,

    Glad to hear it worked out :-)

    Best regards

Please Sign in or register to post replies

Write your reply to: