iwats asp
Start
 
News
 
Course Notes
Intro
What is ASP?
Uses
Requirements
Basic syntax
Response
Request
IF and CASE
Includes
Sessions
Common Errors
Using Your Code
 
Course Test
 
Resources
Common Errors

Errors generated by ASP tend to be very unfriendly. Here are some errors you might get if you incorrectly type the ASP code outlined in this course so far.

Active Server Pages, ASP 0116 (0x80004005)
The Script block lacks the close of script tag (%>).
This means you are missing a closing script tag, the %>. Check your code for the end of the ASP and insert a %>

Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/iwats/asp/test.asp, line 2, column 21
response.write Hello World
In this example, you have left out the quotation marks that must be around all strings. The correct code would be response.write "Hello World"

Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/iwats/asp/test.asp, line 3, column 31
response.write "Hello " & name "!"
When combining strings and variables, you need to have the ampersand (&) character between the strings and variables. It's like a joining mechanism. In this case, we're missing a & between the variable name and the string "!".

Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'www'
The code that generated this error was response.redirect www.mypage.com When using response.redirect, you must put the URL in quotation marks (as a string) unless you are using a variable.

Error Type:
Microsoft VBScript compilation (0x800A03F6)
Expected 'End'
This is most likely caused by a IF�THEN statement that doesn't have an END IF. Check your code and make sure there's a END IF. It can also be caused if you have a SELECT CASE and you haven't included a END SELECT command.

Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file 'include.htm' was not found.
This error happens when you've specified a file to include, but it could not be found. Make sure the file is in the location you've specified and/or it actually exists.