Home Page
"Join my free Amazing ASP.NET newsletter"
It's safe and easy to signup. You get:
  • Notified anytime a new article comes out
  • Technical step-by-step tutorials on all important ASP.NET topics
  • Expert guidance so you can reach unlimited ASP.NET success
  • Important ASP.NET news updates
Enter your Email

When you compile your web site program, you may find that the compiler spotted syntax errors in your source code.  The compiler will list each syntax error separately and give you the opportunity to fix each one in any order that you want.  If you double click on the error in the Error List window, Visual Web Developer will take you directly to the problem and give you the opportunity to fix it.  Click here to watch a sample video.

Some common compiler errors for beginning programmers that I have noticed in the classrom are:

  • Using the wrong case when referring to an object.  C# is case sensitive and you have to make sure you use the correct case (uppercase versus lowercase) when you use a variable or refer to something.  TextBox1 is different than textbox1.  When you are typing in the code editor, Visual Web Developer offers the sensitive box that pops up and gives you a list of available objects to choose from so that you don’t have to type in the entire object you are referencing.  I recommend that you use this pop up box to avoid problems with case.
  • Forgetting semi-colons at the end of a statement.  C# requires that you end your statements with a semi-colon.
  • Forgetting to put a closing parentheses ) in a statement.  This is especially important in statements that have embedded multiple parentheses such as ((.
  • Forgetting to put a closing curly brace } at the end of a block of code.  You should pay close attention to this one because I noticed that this common problem is a bit harder to recognize for some beginning programmers and the compiler may not be able to point you to the exact line where the problem occured.

1 Comment »

  1. thank you so much SIR,iam very grateful to you

    Comment by Junaid — July 27, 2009 @ 4:55 am

RSS feed for comments on this post. TrackBack URL

Leave a comment