Geeks With Blogs
Jason Row .NET Development on the Canadian East Coast

[reposted]

For work I had to find a list of possible compiler errors for use in training material.  It was intersting that there are so many similarities in the documentation for VB and C# 2003 however they organize compiler error differently. It's so much easier to find error codes in C# than VB.

Anyways, for anyone else that's interested in skimming through the kinds of errors that you can cause here are my notes.

Visual Studio 2003

  1. Visual Basic.NET - start here with Compiler Messages
    Another option is in Visual Studio choose Help > Index from the menubar and enter "BC" in the Look for field. Make sure the Filter By dropdown lists Visual Basic.
  2. C# - start here Compiler Errors CS0001 Through CS9999
    The other option is in Visual Studio choose Help > Index from the menubar and enter "CS" in the Look for field. Make sure the Filter By dropdown lists Visual C#

Visual Studio 2005

To find the error code that you've encountered, in Visual Studio highlight the error in the Task Window and press F1. The page that appears should contain the error code in the description.
  • Visual Basic - start here Compiler Messages
  • C# - start here C# Compiler Errors
  • ASP.NET - This is a little different. When you compile a web application, it will display error messages depending on the language of the code being used.  So you can use the links above. However, ASP.NET also has it's own list of error messages that do not have any error codes, just text descriptions. I'm not sure where these come from so if anyone knows or has a suggestion I'd love to hear about it.
Posted on Tuesday, March 20, 2007 9:48 PM .NET Development | Back to top


Comments on this post: Documented compiler errors for VS 2003 and 2005

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Jason Row | Powered by: GeeksWithBlogs.net