When coding there are errors that helps you to loose a lot of time and this is one of this...
I have a C# code used to upload files in a Sharepoint library (a small part of a complex architecture). In summary, the code retrieves the Sharepoint site structure and dinamically maps a treeview to the end user. The end user can select a folder and upload documents on it (it uses the System.Net.WebClient class).
During testing, I've choosed a folder called "Qualità" and when uploading a file, this was the Visual Studio 2008 response:
A wonderful Server Error 409. All works perfectly on other folders.
I've spent hours of debugging and I've discovered that the error cause was on the folder name. This is what happens on the Sharepoint interface:
The folder called Qualità is translated into the URL /Qualit. If you create a new folder called for example Qualitò, it will be translated into the URL /Qualit1 and so on.
How to avoid this problem? If you have advice, please post here a solution... otherwise I've to instruct customers not to create folders with accents... 
Technorati Tag:
Sharepoint