Has anyone had this issue with number of characters in v7 ? We have the same url in v4 and never uncountered this before.
This is on a russian website where we are using Cyrillic Chracters...
This is the error
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 characters.
What's the url to the page with the problem, as shown on the 'Properties' tab of the content page?
Here's a thought... if you've got unicode characters realize that a browser might encode the url and it can become massively longer in some cases. Looking at the browser's inspector tools shows for the actual url request that fails may show it is longer than what appears on the browser url bar. Punycode, for instance, does this (https://www.punycoder.com/) and browsers hide those details from the visitor and just convert unicode for you without alerting you.
That looks to me like it's a server side error rather than a "web" error.
Is it possible that you are storing files/creating files on your server where the fully file path is exceeding the windows limitation of 260 characters?
Without more context, it's a bit hard to identify the cause but it could simply be changes in how data is stored between v4 and v7?
I don't think it is a URL issue as
Maximum URL length is 2,083 characters in Internet Explorer
Number of Characters
Hi Guys,
Has anyone had this issue with number of characters in v7 ? We have the same url in v4 and never uncountered this before.
This is on a russian website where we are using Cyrillic Chracters...
This is the error
Any suggestions ?
What's the url to the page with the problem, as shown on the 'Properties' tab of the content page?
Here's a thought... if you've got unicode characters realize that a browser might encode the url and it can become massively longer in some cases. Looking at the browser's inspector tools shows for the actual url request that fails may show it is longer than what appears on the browser url bar. Punycode, for instance, does this (https://www.punycoder.com/) and browsers hide those details from the visitor and just convert unicode for you without alerting you.
cheers,
doug.
Hi Doug, thanks for the feedback.
Yes indeed we are getting a very long url as below
Will surely give a punycode a try a let you know.
Thanks,
That looks to me like it's a server side error rather than a "web" error. Is it possible that you are storing files/creating files on your server where the fully file path is exceeding the windows limitation of 260 characters?
Without more context, it's a bit hard to identify the cause but it could simply be changes in how data is stored between v4 and v7?
I don't think it is a URL issue as
Source: Stackverflow - Max length of URL
Hi Fuji,
we already met the case !
You can modify this in system.web section of the web.config with the following parameters :
Setting relaxedUrlToFileSystemMapping to "true" can be considered as a security threat by somes but it does not seem to be a big deal. Scott Hanselman talks about that here : http://www.hanselman.com/blog/ExperimentsInWackinessAllowingPercentsAnglebracketsAndOtherNaughtyThingsInTheASPNETIISRequestURL.aspx
Hope it helps ! A bientôt Fuji :)
Hey Arnaud,
Yes got it working, we actually updated the web.config as below.
Comment ta fait avec ton chapiteau en passant ? :) Merci / Thank you
Le château n'est pas encore arrivé ;)
A bientôt Fuji
is working on a reply...