Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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
I have highlighted key concerns and errors in Pink.
Here are the steps I took:
I installed Umbraco in Visual Studio using Nuget
following instructions at http://our.umbraco.org/documentation/Installation/install-umbraco-with-nuget
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
I choose NOT to install any starter website.
Clicking around Umbraco Backoffice worked fine.
Stopped Visual Studio Debug session to recycle site
On Page Titled: “Install Package / Installing the package: uCommerce 220.127.116.1101”
Clicked “Accept License” CheckBox
Clicked “Install Package” Button
Got to Page Titled: “Install Package / Installation is complete. Thank you for choosing
“All you have to do is refresh your browser, and
uCommerce will appear in the applications tray. Have fun!”
“Install Package / Installing the
package: Avenue Clothing Demo Store for uCommerce 6 - Razor 18.104.22.16895”
Clicked “Accept License” Check Box
Got to Page Titled: “Install
Package / uCommerce Demo Razor Store, Installation
Page included the following text
Example Document Types
Example Templates (master pages)
An example site structure
A set of Scripting Files to display the
Install the example uCommerce configuration[?]
Install the example catalogue[?]
Delete the default uCommerce catalogue[?]
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?
I “Saved and Published” following content pages:
Shop, Catalog, Cart, Search, Emails, Product, Address, Shipping, Payment,
Stopped VS Debug session and restarted it
to recycle Umbraco
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
Used Content / Catalog / Properties / Link to
Document to open Calalog page
GOT EXCEPTION (reproducible , I reinstalled everything > 5
times kept getting the same error):
unhandled by user code
Message=Object reference not set to an instance of an object.
ASP._Page_macroScripts_uCommerce_Catalog_cshtml.Execute() in c:\Clancy\A_ClancyCom\Dev\ClancyCom4\ClancyCom4\macroScripts\uCommerce\Catalog.cshtml:line
pageContext, TextWriter writer, WebPageRenderingBase startPage)
pageContext, TextWriter writer)
macro, INode currentPage)
umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode
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”
Category category = SiteContext.Current.CatalogContext.CurrentCategory;
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
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 http://www.ucommerce.net/en/support/ucommerce-tv/getting-started-installing-the-razor-demo-store.aspx
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.
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.
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)
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
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 !!!
Glad to hear it worked out :-)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted