Reputation: 53
I am getting the following error in the error list of an ASP.NET web site opened in visual studio 2012.
And in the Error window there is no line number/file name and clicking on the error does not take me to a line of code.
This is a compile time, not runtime error. The code runs fine on the web server and used to work in VS2005 (on another computer until the drive failed). I just can't get it working in 2012.
Your help is greatly appreciated.
Upvotes: 2
Views: 1939
Reputation: 6916
I've had this in the past and it turned out Visual Studio was reporting an aspnet_compiler error as a "warning". Go to the Error List pane, and at the top there are toggle buttons for Error and Warning. Hit the Warning button till it shows you all the warnings, and you may well find the answer there.
It's also sometimes useful to run aspnet_compiler.exe from the command prompt, to see the output independently from the Visual Studio build.
Upvotes: 3