Skip to Content
ASP.NET 3.5 For Dummies®
book

ASP.NET 3.5 For Dummies®

by Ken Cox
February 2008
Intermediate to advanced
428 pages
8h 52m
English
For Dummies
Content preview from ASP.NET 3.5 For Dummies®

20.2. Analyzing Design-Time Errors

Visual Web Developer (VWD) watches while you code (or paste code) to alert you to errors that could cause trouble at runtime. The background compilation looks for syntax errors and flags them in Source view with a squiggly underline. Look closely at the first sb.Append function in Figure 20-2; VWD has flagged it as a problem.

Pass your mouse over the squiggle to see a tooltip containing the IDE's complaint. Here's the tooltip text:

Variable 'sb' is used before it has been assigned a value.
A null reference exception could result at runtime.

For more detail on any error, including the file and exact line and column number, open the Error List pane (ViewError List), as shown in Figure 20-3.

Figure 20-2. A squiggly line marks an error or warning.
Figure 20-3. The Error List pane provides details on errors and warnings.

For now, resist the temptation to get rid of the aforementioned squiggle. You need the error in the next few pages to highlight features of the debugger.

Double-click the error description to jump to the line that's causing the error. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET 3.5 Unleashed

ASP.NET 3.5 Unleashed

Stephen Walther
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9780470195925Purchase book