Bug 20290 - 'System.IO.PathTooLongException' error displayed on adding new file with names more than 260 chars.
Summary: 'System.IO.PathTooLongException' error displayed on adding new file with name...
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 5.0
Hardware: All All
: Normal normal
Target Milestone: master
Assignee: Bugzilla
Depends on:
Reported: 2014-06-03 04:18 UTC by Prashant manu
Modified: 2014-06-03 16:03 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Prashant manu 2014-06-03 04:18:22 UTC
Steps to reproduce:
1. Open or create any application
2. At solution sidebar right click project and select option 'Add> New file'
3. Add file with Name more than 260 chars.

Actual Result:
'System.IO.PathTooLongException' error displayed on adding new file with names more than 260 chars.

Expected Result:
Error should not be shown.

Screencast: http://www.screencast.com/t/k27UbSj1

Supplement Info: 
Error details: https://gist.github.com/saurabh360/625c49a8a06e8f185723

Regression Status: NOT A REGRESSION same issue exist with stable XS 5.0(build 878).

Environment Info:
Xamarin Studio Version 5.1 (build 323)
Git revision: 3fa48ec1d1969b7b3f9de20326fb3687f612800f
Xamarin addins: b68a34ef2fc4c46b045dc38e26fb199bfe1b201d
Comment 1 Lluis Sanchez 2014-06-03 09:10:49 UTC
This is the expected behavior. Windows has limitations on file name and path length.
Comment 2 Mikayla Hutchinson [MSFT] 2014-06-03 16:03:37 UTC
To be fair, we could validate this, or provide a more specific error dialog.