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

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
 
R

Rob Meade

...
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
 
M

Michael Bray

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
 
M

Michael Bray

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
 
E

Elijah Manor

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top