1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Getting error while override the default page route handling

Getting error while override the default page route handling

2 posts, 0 answered
  1. Velmurugan
    Velmurugan avatar
    0 posts
    Registered:
    23 Jun 2016
    10 Feb
    Link to this post

    Hello All,

    I am developing an application in that customer can view the profile page by hitting the name after the domain like, http://example.com/customername

    So, i did the custom routing to achieve the desired behavior by referring the url http://docs.sitefinity.com/for-developers-override-the-default-page-route-handling

    It is working fine in firefox. But not in chrome browser

    var node = sitemapProvider.FindSiteMapNode("other/page/url", false, out isAdditional, out pars);
    if (node != null)
    return this.GetRouteDataInternal(pars, httpContext.Request.QueryString, node);

    I am getting error in this.GetRouteDataInternal "Object reference not set to an instance of an object."

  2. Velmurugan
    Velmurugan avatar
    0 posts
    Registered:
    23 Jun 2016
    06 Mar
    Link to this post

    I am adding this comment to inform that, this issue is not a browser issue. 

    This issue is happening in every browser in below scenario

    If backend user logged in, at that time if you browse the custom routing page you can get this error. Please help on this?

2 posts, 0 answered