More in this section

Forums / Developing with Sitefinity / News Full Story Link Error

News Full Story Link Error

12 posts, 0 answered
  1. Toby
    Toby avatar
    4 posts
    Registered:
    01 Apr 2009
    15 Apr 2009
    Link to this post
    I am getting an error when I click on the Full Story link for our news items.  I made sure that the auto generate page was set to true but it still sends the error. It says:

    The resource cannot be found.

    Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

    Requested URL: /07-06-01/Microsoft_Gold_Certified_Partner.aspx


    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

    Any help would be appreciated.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    17 Apr 2009
    Link to this post
    Hi Toby,

    I cannot tell you for sure what could cause this issue. Have you made any changes to the control settings? Does this issue happens if you drag and drop a new control on a page, save it without changing anything in this control?

    Any additional information will be helpful determine the problem.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    22 Apr 2009
    Link to this post
    I have encountered the same problem with 3.6 SP1.

    The error occurs after dragging the NewsView control onto a page without making any changes to the control settings.

    Regards,
    Gary
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    23 Apr 2009
    Link to this post
    Hi Gary,

    Check out attached video. Try creating a new content item. Drag and drop the control on the page. Select the new content item you have already created. Check the url whether it is correctly formatted. If possible give us access to your website.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    23 Apr 2009
    Link to this post
    Dear Ivan,

    I probably should have mentioned that I'm not new to Sitefinity. I am also guilty of not having researched the symptoms more thoroughly before posting. I came across this existing post and matched the symptoms without doing the usual additional analysis.

    Here are the additional details you need to understand the problem:

    I have implemented the approach described in the following post to support multiple websites from one Sitefinity version 3.6 installation:

    http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-bbbahh.aspx


    This has in general been working fine, but I've now determined that the issue with the NewsView control is specific to this customization.

    In the rendered list of news items I see that the links to the individual news items are being rendered as the unresolved urls, i.e., with the subdomain inserted  into the path. The only time this occurs is from the GetUrl method of the class inherited from CmsHttpModule. I don't quite understand why this is being called when rendering these links.

    Any help is appreciated.

    Thanks,
    Gary
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    23 Apr 2009
    Link to this post
    Hello Gary,

    That seems to be completely different story from the previous posts. However, you could try to change UnresolveUrl(string url) and remove the condition where we are checking for the length and whether the url starts with slash. Then you can check whether the url.Equals("/") and concatenate the subdomain, return the domain root and the url.

    Also the example is prepared for old version of Sitefinity, if you have made any changes to it and cannot sort out the issue, let us know.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    23 Apr 2009
    Link to this post
    Hello Ivan,

    I think you may have misunderstood my previous post a little. You have described a possible customization to UnresolveUrl. This method is actually working correctly as far as I can tell. My question is why is the NewsView control calling this method to produce the links that are rendered to the client? My understanding is as follows:

    • UnresolveUrl converts a public URL into the internal Sitefinity sitemap format
    • ResolveUrl  internal sitemap format URL into a public URL

    UnresolveUrl is only called by the URL rewriting, which should only be used for tranforming a URL into an internally used path. However, it seems to be getting called for the links that are being rendered within the NewsView control. I have no idea why this would be the case.

    Thanks for your continued help.

    Regards,
    Gary
  8. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    27 Apr 2009
    Link to this post
    Just following up to see if any of the Sitefinity team has a response to this issue...

    Thanks,
    Gary
  9. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    30 Apr 2009
    Link to this post
    Sitefinity Team,

    I would really appreciate your input on this issue.

    Thanks,
    Gary
  10. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    30 Apr 2009
    Link to this post
    Hello Gary,

    You are right about the roles of the two methods, however, it is not guaranteed that they are called only by the rewriter service. What I understand is that the error occurs when requesting a URL like /07-06-01/Microsoft_Gold_Certified_Partner.aspx. This is in fact a perfectly legitimate rewritten URL that might access a news item. Then it seems logical that the rewriter service would call UnresolveURL in order to know which item to serve in the page. In short I cannot understand why it seems strange to you that the method is called when a URL like this is requested. If you send us the code for the custom module you have, we'd be glad to help.

    Kind regards,
    Slavo
  11. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    30 Apr 2009
    Link to this post
    Hello Slavo,

    I think you are still misunderstanding the problem I am reporting.

    You wrote:
    You are right about the roles of the two methods, however, it is not guaranteed that they are called only by the rewriter service.

    UnresolveUrl is a custom method that is only called from GetUrl method of the custom class inherited from CmsHttpModule, so this is the only place it can be called from.

    You wrote:
    What I understand is that the error occurs when requesting a URL like /07-06-01/Microsoft_Gold_Certified_Partner.aspx.

    That's not what I'm saying. The NewsView control renders a list of news items links. The format of those links is like /MYSUBDOMAIN/07-06-01/Microsoft_Gold_Certified_Partner.aspx.

    Does this make sense now?
  12. Slavo
    Slavo avatar
    295 posts
    Registered:
    24 Sep 2012
    07 May 2009
    Link to this post
    Hi Gary,

    Please excuse me for misunderstanding. I tried to reproduce the problem with the subdomain setup that you have used and the NewsView control behaves properly. However, there have been slight changes to the code posted in that Forum thread you mentioned, and I suspect that may be the problem. I'm attaching the latest subdomain setup code that I had no problems with. Please use this instead of the one in the forum thread and report if you still encounter the error.

    Kind regards,
    Slavo
Register for webinar
12 posts, 0 answered