In VB6, I am using the Web Browser Control's NavigateError Event to trap HTTP errors. It returns StatusCode, like "500", which is this:
HTTP_STATUS_SER VER_ERROR
500
The server encountered an unexpected condition that prevented it from fulfilling the request.
If I let Internet Explorer report the error, I get much more info. Here are some "500 error" examples:
Example 1 for "500" type error:
Page cannot be displayed...
HTTP 500.100 - Internal Server Error - ASP error...
- Error Type:
Server.Map(), ASP 0174 (0x80004005)
An invalid "/" or "\" was found in the Path param...
/folder/program.asp, line 124
Example 2 for "500" type error:
Page cannot be displayed...
HTTP 500.100 - Internal Server Error - ASP error...
- Error Type:
Microsoft JET Database Engine (0x80004005)
Could not find file
C:\path...\file name.ext
/folder/program.asp, line 124
How can my VB6 app access the error description information listed under "Error Type" when the event fires?
HTTP_STATUS_SER VER_ERROR
500
The server encountered an unexpected condition that prevented it from fulfilling the request.
If I let Internet Explorer report the error, I get much more info. Here are some "500 error" examples:
Example 1 for "500" type error:
Page cannot be displayed...
HTTP 500.100 - Internal Server Error - ASP error...
- Error Type:
Server.Map(), ASP 0174 (0x80004005)
An invalid "/" or "\" was found in the Path param...
/folder/program.asp, line 124
Example 2 for "500" type error:
Page cannot be displayed...
HTTP 500.100 - Internal Server Error - ASP error...
- Error Type:
Microsoft JET Database Engine (0x80004005)
Could not find file
C:\path...\file name.ext
/folder/program.asp, line 124
How can my VB6 app access the error description information listed under "Error Type" when the event fires?