Why does VS not show build error filenames in ASP.NET 2.0 projects?

  • Thread starter Thread starter Michael Bray
  • Start date Start date
M

Michael Bray

I have some class files in App_Code (eg MyClass.cs) but if there is an
error during compilation, the error list doesn't say what file the error is
in. It just shows something like "(0,0): error CS0246: blah blah blah".
Am I missing something obvious?? Because searching all of my classes for
where the error might be really sucks.

-mdb
 
...
Am I missing something obvious?? Because searching all of my classes for
where the error might be really sucks.

Are unable to click on the "Error List" tab and then double click the actual
error itself? For me, when I do this it opens the file in question..

Rob
 
Are unable to click on the "Error List" tab and then double click the
actual error itself? For me, when I do this it opens the file in
question..

Nope... the error list is just as useless. It lists the error, but no
file, line number, or position number - they are all blank. Double
clicking on them does nothing.

-mdb
 
The Error List has a File column, do you mean it's empty in your
case?
There are: Line, Column and Project name as well...

CS0246 means the following:
http://msdn2.microsoft.com/en-us/library/w7xf6dxs(vs.80).aspx

Yes... the File column is empty for ALL of the errors that are generated,
so I can't click on them (as is the line and column values). The CS0246
that I mentioned was just an example - I don't need help on what that error
means. I'm trying to figure out why the file, line, and column values
aren't being reported, because this prevents me from being able to double-
click on them to go to the error. I have to manually search through my
entire code (without even knowing which file to look in) to figure out
where the error is.

-mdb
 
I am having the same problem and it is quite annoying. My old project worked fine (showing error file, line, etc...), but I copied the project and am working an a new version of the code and the file and line numbers aren't showing up anymore. I am not sure what is different between the projects. I am trying to delete things until it works again, but I haven't had any luck yet.

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
Back
Top