Check error methods available with the IIS debugger

Source: Internet
Author: User
Tags error handling odbc ole

When debugging an ASP program with IIS, some pages can display error lines and causes of errors, although the reason is not very specific but enough to boot the debugger, but sometimes directly appear: HTTP 500-Internal server error is over, very affected debugging, after the CSDN and discussion, When it comes to debugging ASP programs that are easy to check for errors, it is summarized as follows:

1, win2kserver Management Web site do not close.

2, check the home directory options under the "Configuration" of the application debugging is not selected, (their use found, if the management of the Web site does not close, this is not selected can also appear in the browser error prompts.) )

3, can modify 500-100.asp file to make the error hint more vivid

Http://blog.csdn.net/snowcloud2002/archive/2003/12/15/19427.aspx

4, can be in the prior code error handling:
On Error Resume Next

5. Write the frame first
Write the code to the frame (not the picture) to write well, the framework has, more detailed code to write a handy ~ ~ ~

6, more use of CSS less table.
[COMETZG]: Detailed information can be on http://www.w3cn.org/web designer website Query

7, when debugging in the page screen, output some sensitive dongdong

Response.Write ""
Response.Flush ()
Response.End
[COMETZG]: This method is not the best, debugging when you can see some information, but after debugging need to find all the debugging-related output statements, but also very troublesome.

8, the program has session, try not to CTRL + N window.open a new window, lest the session value mixed.

9, set up debugging in the configuration of IIS virtual directory, send detailed error message to client.
IE tools ==> option ==> Advanced, cancel out display friendly HTTP error message

10, the collection of error code is very practical ...

Active Server Pages, ASP 0126 (0x80004005)--> cannot find the include file

Microsoft OLE DB Provider for ODBC Drivers (0X80040E21)--> SQL statement error (data type mismatch or table name (field name) error or table is in edit state, or table does not exist in Conn Open database) Br>microsoft OLE DB Provider for ODBC Drivers (0X80040E14)--> SQL statement errors (field name error, or data type mismatch)
Microsoft OLE db Provider for ODBC Drivers (0X80040E07)--> SQL statement error (the type of field to be inserted or updated does not match the variable data type)
Microsoft OLE DB Provider for ODBC Drivers (0x80040e5 7--> SQL statement error (data overflow to insert or update)
Microsoft OLE DB Provider for ODBC Drivers (0X80040E10)--> SQL statement error (update field name or data to update Type error
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)--> SQL statement error (the value of the field to be inserted or updated cannot be null)
Microsoft OLE DB Pro Vider for ODBC Drivers (0x80004005)--> Open Database error, no database found in specified directory
Microsoft OLE DB Provider for ODBC Drivers (0x80040e37 --> did not find the table

Microsoft VBScript run-time error (0x800a000d)--> Error Reference RS variable (rs to like closed or undefined)
Microsoft VBScript run-time error (0X800A01C2)--> VBScript script error (VBScript statement error)
Microsoft VBScript run-time error (0x800a0006)--> VBScript scripting error (overflow error)
Microsoft VBScript Compiler error (0x800a040e)--> missing loop
Microsoft VBScript compiler Error (0X800A03EA)--> missing if or End if
Microsoft VBScript compiler error ( 0X800A03EE)--> statement not closed (missing ")")
Microsoft VBScript compiler Error (0X800A03F6)--> if statement error (missing End If)
Microsoft VBScript Runtime error (0X800A005B)--> missing set
Microsoft VBScript run-time error (0x800a0005)--> variable undefined
Microsoft VBScript compiler error (0x800a 03F9)--> If statement missing then
Microsoft VBScript compiler Error (0x800a0411)--> Dim statement definition Error
Microsoft VBScript compiler Error ( 0x800a0408)--> SQL statement error (?????????????????)


ADODB. Recordset (0X800A0BB9)--> SQL statement error (an error occurred when an SQL statement or Conn statement was undefined or assigned to an RS property)
ADODB. Recordset (0X800A0CC1)--> RS to image error (Rs to image itself does not exist or incorrectly references a nonexistent field name)
ADODB. Recordset (0X800A0BCD)--> RS error (record set does not have records but operates on Recordset)
ADODB. Recordset (0x800a0e78)--> RS Image error (Recordset does not exist, missing Rs.Open statement)
ADODB. Recordset (0X800A0CC1)--> RS error (referencing a nonexistent field name)
ADODB. Recordset (0x800a0e7d)--> Conn Definition Error
ADODB. The Recordset (0X800A0CB3)--> database is opened read-only and data cannot be updated.

=================================================================================================

============
VBScript syntax error
If the VBScript statement structure violates one or more VBScript scripting language syntax rules, a VBScript syntax error is generated.
Errors are usually generated when the program is compiled before executing the program. Here are 53 syntax errors:
Error number Description
Decimal hexadecimal description
1001 800a03e9 Low Memory
1002 800a03ea Syntax error
1003 800a03eb Missing ":"
1005 800a03ed need ' ('
1006 800a03ee need ') '
1007 800a03ef Missing "]"
1010 800A03F2 requires identifiers
1011 800a03f3 need ' = '
1012 800a03f4 need ' If '
1013 800a03f5 needs ' to '
1014 800a03f6 needs ' end '
1015 800a03f7 needs ' Function '
1016 800a03f8 needs ' Sub '
1017 800A03F9 needs ' Then '
1018 800A03FA needs ' Wend '
1019 800A03FB need ' Loop '
1020 800A03FC needs ' Next '
1021 800A03FD needs ' case '
1022 800a03fe needs ' Select '
1023 800A03FF requires an expression
1024 800a0400 Need statement
1025 800a0401 requires the end of the statement
1026 800a0402 requires integer constants
1027 800a0403 need ' while ' or ' Until '
1028 800a0404 need ' while, ', ' Until, ' or statement not ended
1029 800a0405 need ' with '
1030 800a0406 identifier too long
Invalid number of 1031 800a0407
Invalid characters for 1032 800a0408
1033 800a0409 string constants with no end
1034 800a040a A comment that is not closed
1037 800a040d Invalid using keyword ' Me '
1038 800a040e ' Loop ' doesn't have ' do '
1039 800a040f Invalid ' exit ' statement
1040 800a0410 invalid ' for ' Loop control variable
1041 800a0411 Name Redefine
1042 800a0412 must be the first statement of a row
1043 800a0413 cannot be assigned to non-ByVal parameters
1044 800a0414 cannot use parentheses when calling Sub
1045 800a0415 requires literal constants
1046 800a0416 need ' in '
1047 800a0417 needs ' Class '
1048 800a0418 must be defined within a class
1049 800a0419 requires let, Set, or get in a property declaration
1050 800a041a needs ' property '
The number of 1051 800a041b parameters must be consistent with the attribute description
1052 800a041c cannot have more than one default property/method in a class
1053 800A041D class initialization or termination cannot take parameters
1054 800a041e Property Let or Set should have at least one argument
1055 800a041f don't need ' Next '
1056 800a0420 can only specify ' Default ' on ' property ' or ' Function ' or ' Sub '
1057 800a0421 stating ' Default ' must also state ' public '
1058 800a0422 can only specify ' Default ' in Property Get

VBScript run-time Error
If the VBScript script performs an operation that the system cannot implement, a VBScript Run-time error is generated. A VBScript run-time error occurs only when you run a script, assign a value to a variable expression, or allocate memory. Here are 65 Run-time errors:
Error number Description
Decimal hexadecimal description
5 800a0005 Invalid procedure call or parameter
6 800a0006 Overflow
7 800a0007 Low Memory
9 800a0009, subscript out of bounds.
800a000a the array is fixed-length or temporarily locked
One 800a000b by 0 apart
800A000D Type mismatch
800a000e String Space Overflow
800A0011 cannot perform the requested operation
800a001c Stack Overflow
800a0023 no Sub or Function is defined
800a0030 Loading DLL Error
Wuyi 800a0033 Internal Error
800a0034 bad filename or number
800a0035 File not found
800a0036 Bad file mode
800a0037 file is open
800a0039 device I/O error
The 800a003a file already exists
800a003d disk space is full
The 800a003e input exceeds the end of the file
Too many 800a0043 files
The 800a0044 device is not available
800a0046 permission Disabled
The 800a0047 disk is not ready.
The 800a004a cannot be renamed with a different drive
800A004B Path/File access error
The 800a004c path was not found
800a005b not Set object variable
The 800a005c for loop is not initialized
800a005e illegal use of Null
322 800a0142 Unable to create the required temporary files
424 800a01a8 needs objects
429 800A01AD ActiveX Part cannot create object
430 800A01AE class does not support automation
432 800a01b0 The file name or class name was not found in the automation operation
438 800a01b6 Object does not support this property or method
440 800A01B8 Automation Error
445 800A01BD object does not support this operation
446 800a01be object does not support the specified argument
447 800A01BF object does not support the current locale
448 800a01c0 not found named parameter
449 800A01C1 parameter is not selectable
450 800a01c2 Wrong number of arguments or invalid parameter property values
451 800a01c3 object is not a collection
453 800A01C5 The specified DLL function was not found
455 800A01C7 Code Source lock Error
457 800A01C9 This key is already an element of this collection.
The 458 800A01CA variable uses a type of automation (automation) that is not supported in VBScript
462 800A01CE remote Server does not exist or cannot be accessed
481 800A01E1 Invalid Picture
800A01F4 variable not defined
Distribution of illegal 501 800a01f5
502 800a01f6 Script object is not secure
503 800a01f7 object cannot be safely initialized
504 800a01f8 object cannot be created securely
505 800A01F9 Invalid or unqualified reference
506 800A01FA class is not defined
507 800A01FB An exception occurred
5016 800a1398 requires regular expression objects
Syntax errors in 5017 800a1399 regular expressions
5018 800a139a Wrong number words
5019 800a139b in regular expressions requires '] '
5020 800a139c in regular expressions need ') '
5021 800a139d Character set out of bounds
32811 800a802b element not found


[COMETZG]: At the same time, thank ruide205 (Susen), Miqier (Michiel), Jaron (WWW. JARON. CN), snowcloud2002 (blue), Bainstudio (Fat Dog), Lansheyuyan (a heart, a gut), nan7757 (riding an ant red light), Dsclub (Wu-cadre), Bainstudio (Fat Dog) Provide methods or information, etc.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.