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.

  • Mr A 216 posts 278 karma points
    Nov 06, 2012 @ 11:25
    Mr A
    0

    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.

  • Mr A 216 posts 278 karma points
    Nov 09, 2012 @ 11:30
    Mr A
    1

    This is solved by urlrwriting and configuring hostname.

  • Søren Spelling Lund 1796 posts 2764 karma points
    Nov 09, 2012 @ 13:06
    Søren Spelling Lund
    0

    Thanks for being awesome and posting the answer in the forum! #h5yr!

  • merves 23 posts 43 karma points
    Dec 15, 2012 @ 11:27
    merves
    0

    Hello, can you lead us to solve this problem with urlrwriting and configuring hostname? Thanks

  • Søren Spelling Lund 1796 posts 2764 karma points
    Dec 17, 2012 @ 11:01
    Søren Spelling Lund
    0

    Hi Merves,

    Can you verify that the /config/UrlRewriting.config file contains the following rules:

    <add name="DefaultCategoryProductRewrite" virtualUrl="(.*)/c-([0-9]+)/c-([0-9]+)/p-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/catalog/product.aspx?catalog=$2&amp;category=$3&amp;product=$4" ignoreCase="true" xmlns="" />
    <add name="DefaultProductRewrite" virtualUrl="(.*)/c-([0-9]+)/p-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/catalog/product.aspx?catalog=$2&amp;product=$3" ignoreCase="true" xmlns="" />
    <add name="DefaultCategoryRewrite" virtualUrl="(.*)/c-([0-9]+)/c-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/catalog.aspx?catalog=$2&amp;category=$3" ignoreCase="true" xmlns="" />
    <add name="DefaultCatalogRewrite" virtualUrl="(.*)/c-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/catalog.aspx?catalog=$2" ignoreCase="true" xmlns="" />
  • Mr A 216 posts 278 karma points
    Dec 17, 2012 @ 12:58
    Mr A
    0

    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&amp;category=$3&amp;product=$4" ignoreCase="true" xmlns="" />

        <add name="DefaultProductRewrite" virtualUrl="(.*)/c-([0-9]+)/p-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/shop/catalog/product.aspx?catalog=$2&amp;product=$3" ignoreCase="true" xmlns="" />

        <add name="DefaultCategoryRewrite" virtualUrl="(.*)/c-([0-9]+)/c-([0-9]+)" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/shop/catalog.aspx?catalog=$2&amp;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.

     

Please Sign in or register to post replies

Write your reply to:

Draft