I have installed the razor store on 4.9 , but the homepage comes up with the error stack:
Error Loading Razor Script (file: uCommerce Homepage Catalog) Object reference not set to an instance of an object. at ASP.uCommerce.Helpers.Product.<>c__DisplayClass7.<DisplayListItemProduct>b__6(TextWriter __razor_helper_writer) at System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) at ASP.uCommerce.Helpers.Product.<>c__DisplayClass1.<DisplayListProducts>b__0(TextWriter __razor_helper_writer) at System.Web.WebPages.HelperResult.WriteTo(TextWriter writer) at System.Web.WebPages.WebPageBase.Write(HelperResult result) at ASP._Page_macroScripts_uCommerce_HomepageCatalog_cshtml.Execute() in d:\inetpub\vhosts\tangent-design.com\subdomains\groupsavercard\httpdocs\macroScripts\uCommerce\HomepageCatalog.cshtml:line 7 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 umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage) at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
Razor store ,HomepageCatalog error
Hi ,
I have installed the razor store on 4.9 , but the homepage comes up with the error stack:
Error Loading Razor Script (file: uCommerce Homepage Catalog) Object reference not set to an instance of an object. at ASP.uCommerce.Helpers.Product.<>c__DisplayClass7.<DisplayListItemProduct>b__6(TextWriter __razor_helper_writer)
at System.Web.WebPages.HelperResult.WriteTo(TextWriter writer)
at ASP.uCommerce.Helpers.Product.<>c__DisplayClass1.<DisplayListProducts>b__0(TextWriter __razor_helper_writer)
at System.Web.WebPages.HelperResult.WriteTo(TextWriter writer)
at System.Web.WebPages.WebPageBase.Write(HelperResult result)
at ASP._Page_macroScripts_uCommerce_HomepageCatalog_cshtml.Execute() in d:\inetpub\vhosts\tangent-design.com\subdomains\groupsavercard\httpdocs\macroScripts\uCommerce\HomepageCatalog.cshtml:line 7
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 umbraco.MacroEngines.RazorMacroEngine.ExecuteRazor(MacroModel macro, INode currentPage)
at umbraco.MacroEngines.RazorMacroEngine.Execute(MacroModel macro, INode currentPage)
any ideas on this error.
This is solved by urlrwriting and configuring hostname.
Thanks for being awesome and posting the answer in the forum! #h5yr!
Hello, can you lead us to solve this problem with urlrwriting and configuring hostname? Thanks
Hi Merves,
Can you verify that the /config/UrlRewriting.config file contains the following rules:
I did a minor change to url rwriting :
<add name="DefaultCategoryProductRewrite" virtualUrl="(.*)/c-([0-9]+)/c-([0-9]+)/p-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/shop/catalog/product.aspx?catalog=$2&category=$3&product=$4" ignoreCase="true" xmlns="" />
<add name="DefaultProductRewrite" virtualUrl="(.*)/c-([0-9]+)/p-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/shop/catalog/product.aspx?catalog=$2&product=$3" ignoreCase="true" xmlns="" />
<add name="DefaultCategoryRewrite" virtualUrl="(.*)/c-([0-9]+)/c-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/shop/catalog.aspx?catalog=$2&category=$3" ignoreCase="true" xmlns="" />
<add name="DefaultCatalogRewrite" virtualUrl="(.*)/c-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/shop/catalog.aspx?catalog=$2" ignoreCase="true" xmlns="" />
where shop is my store under my home root node, set the hostname of ur store node to the root node,
Can you show the content tree of your website.
is working on a reply...