Visual Studio Line Numbers Missing From Error List

by Kindler Chase 7/5/2008 4:30:00 PM

I'm compiling a web site in Visual Studio 2008 and have an unsuccessful build. OK, nothing unusual yet; compile errors seem to follow me around more often than not. The Error List window presents a number of errors, but two things are out of the ordinary:

  • The Error List does not show any line numbers or file names; it only shows the Error Description.
  • Double clicking the error does not take me directly to the erroneous page. Quite the opposite – it does nothing at all.

I try various things to correct the problem, i.e., close VS and restart it, reboot the computer… nothing helps.

Screen shot of Visual Studio Error List with line numbers and files not being displayed:

This is what I should be seeing:

Resolution

Visual Studio 2008 appears to have a bug that causes it to choke on projects containing non alpha-numeric characters in the file path. In my case, the file path had parenthesis: C:\<snip>\SiteName (test site)\Default.aspx

Removing the parenthesis resolved the problem: C:\<snip>\SiteName - test site\Default.aspx

Conclusion

Just because Windows accepts a valid directory name, doesn't necessarily mean Visual Studio will accept the name. If you encounter this error, verify none of the directories/folders in your site's path have funky characters such as parenthesis or the pound sign (#).

Enjoy!

Related posts

Add comment


 

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

9/8/2008 11:52:12 AM

Powered by BlogEngine.NET 1.3.1.0
Theme by Mads Kristensen

Kindler Chase

Kindler Chase This is SharePoint's world. I'm only living in it.

Your host, on the right, with my better half, Sadi.
  E-mail me Send mail

Calendar

<<  September 2008  >>
MoTuWeThFrSaSu
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

View posts in large calendar

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2007-2008

Sign in