How to check the availability of IIs debugging programs

Source: Internet
Author: User

When using IIS to debug ASP programs, some pages can display the error line and cause. Although the cause is not very specific, it is sufficient to guide the debugging program, but sometimes it appears directly: HTTP 500-Internal Server errors are completed, which affects debugging. After discussing with you on CSDN, we have discussed many methods to check errors when debugging ASP programs, which are summarized as follows:

1. Do not close the management Web site of Win2KServer.

2. Check whether the application debugging under "configuration" under the main directory option is selected. (If you find that the Web site is not closed, if this option is not selected, an error message can be displayed in the browser .)

3. You can modify the 500-100.asp file to make the error prompt more vivid.

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

4. You can handle errors in advance code:
On Error Resume Next
 
5. Write the framework first
To write code, you must first write the framework (not the finger-painting). When the framework is ready, you can write more detailed code with ease ~~~
 
6. Use CSS to use less tables!
[Cometzg]: Detailed information can go to the http://www.w3cn.org/web designer website Query

7. Shielding pages and outputting some sensitive stuff during debugging

Response. write ""
Response. flush ()
Response. end
[Cometzg]: This method is not the best. Some information can be seen during debugging. However, it is very troublesome to find all the output statements related to debugging after debugging.

8. When there is a session in the program, do not ctrl + n window. open a new window to avoid mixing session values!

9. Set debugging in the IIS virtual directory configuration and send detailed error messages to the client.
In IE, tools ==> options ==> advanced are used to cancel displaying friendly HTTP Error messages.

10. The error codes collected are very useful...
 
Active Server Pages, ASP 0126 (0x80004005) --> the inclusion file cannot be found.

Microsoft ole db Provider for ODBC Drivers (0x80040E21) --> SQL statement error (Data Type mismatch, table name (field name) error, or table editing status, or the table does not exist in the Database opened by conn)
Microsoft ole db Provider for ODBC Drivers (0x80040E14) --> SQL statement error (incorrect field name or Data Type mismatch)
Microsoft ole db Provider for ODBC Drivers (0x80040E07) --> SQL statement error (the type of the field to be inserted or updated does not match the data type of the variable)
Microsoft ole db Provider for ODBC Drivers (0x80040E57) --> SQL statement error (Data overflow to be inserted or updated)
Microsoft ole db Provider for ODBC Drivers (0x80040E10) --> SQL statement error (incorrect update field name or data type to be updated)
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 Provider for ODBC Drivers (0x80004005) --> An error occurred while opening the database. The database was not found in the specified directory.
Microsoft ole db Provider for ODBC Drivers (0x80040E37) --> no table found

Microsoft VBScript runtime error (0x800A000D) --> the rs variable is referenced incorrectly (the rs object is disabled or undefined)
Microsoft VBScript runtime error (0x800A01C2) --> vbscript error (vbscript statement error)
Microsoft VBScript runtime error (0x800A0006) --> vbscript error (overflow error)
Microsoft VBScript compiler error (0x800A040E) --> loop missing
Microsoft VBScript compiler error (0x800A03EA) --> if or end if is missing
Microsoft VBScript compiler error (0x800A03EE) --> the statement is not completed (")" is missing ")")
Microsoft VBScript compiler error (0x800A03F6) --> if statement error (end if missing)
Microsoft VBScript runtime error (0x800A005B) --> set missing
Microsoft VBScript runtime error (0x800A0005) --> variable undefined
Microsoft VBScript compiler error (0x800A03F9) --> the if statement lacks 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 is undefined or an rs attribute is assigned a value)
ADODB. Recordset (0x800a0cc0) --> An error occurred while accessing the rs object. (The rs object does not exist or a nonexistent field name is incorrectly referenced)
ADODB. Recordset (0x800A0BCD) --> rs image error (operations on the record set are performed if no record is recorded in the record set)
ADODB. Recordset (0x800A0E78) --> rs object error (record set does not exist and the rs. open statement is missing)
ADODB. Recordset (0x800a0cc0) --> rs object error (reference a nonexistent field name)
ADODB. Recordset (0x800A0E7D) --> conn definition Error
ADODB. Recordset (0x800A0CB3) --> the database is read-only and cannot be updated.

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

================
VBScript syntax error
If the VBScript statement structure violates one or more VBScript syntax rules, a VBScript syntax error occurs.
Errors are usually generated when the program is compiled before the program is executed. The following are 53 syntax errors:
Error Code Description
Hexadecimal notation
1001 800A03E9 insufficient memory
1002 800A03EA syntax error
1003 800A03EB missing ":"
1005 800A03ED required (
1006 800A03EE required)
1007 800A03EF missing "]"
1010 800A03F2 requires an identifier
1011 800A03F3 required =
1012 800A03F4 requires If
1013 800A03F5 required
1014 800A03F6 requires End
1015 800A03F7 requires Function
1016 800A03F8 requires Sub
1017 800A03F9 requires Then
1018 800A03FA requires Wend
1019 800A03FB requires Loop
1020 800A03FC requires Next
1021 Case required for 800A03FD
1022 Select is required for 800A03FE
1023 800A03FF expression required
1024 800A0400 statements
1025 800A0401 end of the required statement
1026 800A0402 requires an integer constant
1027 800A0403 While or Until required
1028 800A0404 requires While, Until, or the statement has not ended
1029 800A0405
1030 800A0406 the identifier is too long
1031 800A0407 invalid count
1032 800A0408 invalid characters
1033 800A0409 unfinished String constant
1034 800A040A unended comments
1037 800A040D invalid keyword Me
1038 800A040E loop no do
1039 the exit statement is invalid for 800A040F.
1040 800A0410 invalid for loop control variable
1041 800A0411 name redefinition
1042 800A0412 must be the first statement of the row
1043 800A0413 cannot be assigned to a non-Byval Parameter
1044 800A0414 parentheses cannot be used to call Sub.
1045 800A0415 requires a literal constant
1046 800A0416 requires In
1047 800A0417 requires Class
1048 800A0418 must be defined inside a class
1049 800A0419 the attribute Declaration requires Let, Set, or Get
1050 800A041A requires Property
1051 the number of 800A041B parameters must be consistent with the attribute description
1052 800A041C cannot have multiple default attributes/methods in the class
1053 800A041D class initialization or termination cannot contain parameters
1054 800A041E Property Let or Set should have at least one parameter
1055 Next not required for 800A041F
1056 800A0420 you can only specify 'default' on 'properties', 'function', or 'sub'
1057 800A0421: both Public and Default are required"
1058 800A0422 can only be specified in Property Get

VBScript runtime error
If the VBScript execution system cannot perform operations, a VBScript running error occurs. VBScript runtime errors are generated only when scripts are run, variable expressions are assigned values, or memory is allocated. Below are 65 runtime errors:
Error Code Description
Hexadecimal notation
5 800A0005 invalid process call or Parameter
6 800A0006 Overflow
7 800A0007 insufficient memory
9 800A0009 subscript out of bounds
10 800A000A the array is fixed length or temporarily locked
11 800A000B division by zero
13 800A000D Type Mismatch
14 800A000E string space Overflow
17 800A0011 unable to perform the requested operation
28 800A001C Stack Overflow
35 800A0023 undefined Sub or Function
48 800A0030 DLL loading error
51 800A0033 internal error
52 800A0034 bad file name or number
53 800A0035 file not found
54 800A0036 bad file Mode
55 800A0037 file opened
57 800A0039 device I/O Error
58 800A003A file already exists
61 800A003D the disk space is full
62 800A003E the input exceeds the end Of the file
67 too many 800A0043 files
68 800A0044 device unavailable
70 800A0046 permission disabled
71 800A0047 Disk not ready
74 800A004A cannot be renamed with different drives
75 800A004B path/File Access Error
76 800A004C path not found
91 800A005B object variable not set
92 800A005C For loop not initialized
94 800A005E illegal use of Null
322 800A0142 the required temporary file cannot be created
424 objects required for 800A01A8
429 objects cannot be created for 800A01AD ActiveX parts
430 800A01AE category does not support automation
432 800A01B0 file name or class name not found in automated operations
438 the 800A01B6 object does not support this attribute or Method
440 800A01B8 Automation error
445 800A01BD object does not support this operation
446 the 800A01BE object does not support specified parameters
447 the 800A01BF object does not support the current region settings
448 name parameter not found for 800A01C0
4

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.