Search The Blog
About this site

@RoyOsherove

Subscribe!

This site aims to connect all the dots of my online activities - from tools, books blogs and twitter accounts, to upcoming conferences, engagements and user group talks.

from 5whys.com
Twitter: @RoyOsherove
My Book: The Art of Unit Testing
Latest Posts
« $50,000 to build a Cool Tool? | Main | Annoying problem (+Solution) of the week: "One or more projects in Solution X needs to be updated to use Crystal Reports 10." »
Wednesday
Jun222005

"Visual C# .NET compiler could not be created" - Possible solution?

We started getting this weird exception when trying to build some solution manually:
"Project <Name> could not be opened because the Microsoft Visual C# .NET compiler could not be created"
 
It might be one of these things here, but for me it was something different.
 
The path of  one of the project files inside the solution was just too long.
How long? With System.IO it seems impossible to access any files or directories if the
total name (.FullName) is longer than 260 characters or else you get a "PathTooLongException".
 
Of course - VS.NET 2003 was not polite enough to reveal that information to me. No. I had to find out through a mistress - Resharper. This wonderful add in popped up with a dialog box explaining there was an error in loading the project data:
 
JetBrains.ReSharper.Util.InternalErrorException: An exception has occurred during initialization of a solution component ---> System.IO.PathTooLongException: The path is too long after being fully qualified.  Make sure path is less than 260 characters.
 
Thanks, JetBrains.

PrintView Printer Friendly Version

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>