Try Now
More in this section

Forums / Developing with Sitefinity / maxUrlLength in MVC only mode.

maxUrlLength in MVC only mode.

2 posts, 0 answered
  1. Denis
    Denis avatar
    105 posts
    27 Feb 2009
    14 Aug 2013
    Link to this post
    In pure MVC mode I have a simple widget that shows News (Index + Detail
    views). If news title is too long (lets say between 300 and 400
    symbols), Detail view page throws exception: "The specified path, file
    name, or both are too long. The fully qualified file name must be less
    than 260 characters, and the directory name must be less than 248

    On the other hand, in web.config file maxUrlLength is set to "102400":
    maxRequestLength="102400" maxUrlLength="102400"
    Telerik.Sitefinity" />

    Why this setting isn't applied and what would you recommend to handle these situations? Thanks.
  2. Tosho
    Tosho avatar
    1 posts
    13 Sep 2012
    20 Aug 2013
    Link to this post
    Hello Denis,
    How do you navigate to the detail view? Are you passing the news title as a parameter to the Detail action? This limitation is in the Http.sys kernel driver in Windows Server that handles HTTP requests.
    In order to fix it, you need to increase the UrlSegmentMaxLength setting in the registry of your server.
    Check this article - http://support.microsoft.com/kb/820129
    I think that this change is not necessary because you can add the News Id as a parameter for the Detail action. If I didn't understand your case correctly and there is something more, could you please send me a sample project that demonstrates the issue.
2 posts, 0 answered