[thelist] ASP Err Object in IIS 5

Ken Kogler ken at kenkogler.com
Tue Feb 19 09:36:00 CST 2002


Here's the code I use. Feel free to parse it an steal whatever you need:

-----------------------
Response.write "500 Internal Server Error"
Set objASPErr = Server.GetLastError()
Response.Write "<b>ASP Code:</b> " & objASPErr.ASPCode & "<br><br>"
Response.Write "<b>Description:</b> " & objASPErr.Description &
"<br><br>"
Response.Write "<b>ASP Description:</b> " & objASPErr.Description &
"<br><br>"
Response.Write "<b>Error Category:</b> " & objASPErr.Category &
"<br><br>"
Response.Write "<b>In File:</b> " & objASPErr.File & "<br><br>"
Response.Write "<b>At Column:</b> " & objASPErr.Column & "<br><br>"
Response.Write "<b>At Line:</b> " & objASPErr.Line & "<br><br>"
Response.Write "<b>Error Number:</b> " & objASPErr.Number & "<br><br>"
Response.Write "<b>Error Source:</b> " & objASPErr.Source & "<br><br>"
Set objASPErr = nothing
-----------------------

-kenkogler(.com)


-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org] On Behalf Of Tab Alleman
Sent: Tuesday, February 19, 2002 9:10 AM
To: thelist at lists.evolt.org
Subject: [thelist] ASP Err Object in IIS 5


I've got an error handler that sends me a string like this:

	("ASP Error (" & Err.Number & ":  " & Err.Description & ")" &
Chr(10) & _
				"Source: (" & Err.Source & ")")

And the string I get ends up looking something like this:

	ASP Error (424:  Object required)
	Source: (Microsoft VBScript runtime error)


Where's the page name and line #?  I know it must be in the object
somewhere.. anybody know?

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !




More information about the thelist mailing list