ASPError.ASPCode() ASPError.ASPDescription() ASPError.Category() ASPError.Column() ASPError.Description() ASPError.File() ASPError.Line() ASPError.Number() ASPError.Source() –MindGame Feb 13 '12 at 17:23 1 Great answer indeed as @Dan also said - going to award nice fat bounty Heck, if there were a line number, I wouldn't be posting here - I'd fix it. XML Info Information: Feedback Author an Article Published: Monday, February 12, 2001 Generating Sensible Error Messages Using Err.Raise By Zack Jones Okay, I'll admit it, if there's one area where my In the Edit Error Pages Settings dialog, under Error Responses, select either Custom error pages or Detailed errors for local requests and custom error pages for remote requests. http://ebprovider.com/classic-asp/classic-asp-on-error-line-number.php
But you can define a custom 500 error code page in ASP land that can give you a bit more info when your program crashes. What should I do? VBScript Runtime error (with no line number) P: n/a Adrienne Boswell I am getting this error: Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch: 'sid' /beta/files/index.asp There is no line number, Adrienne would not have posted if it were that simple. -- Dave Anderson Unsolicited commercial email will be read at a cost of $500 per message. i thought about this
Heck, if there were a line number, I wouldn't be posting here - I'd fix it. handle error end if share|improve this answer answered Feb 13 '12 at 16:35 Diodeus 82.2k24115146 add a comment| up vote 0 down vote To add to @Jon Eastwood's answer - if more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed For what it's worth this is my basic error managment code: Code: SQL = "Some select, update, etc...
SitePoint Sponsor User Tag List Results 1 to 5 of 5 Thread: ASP Error Handling. Maybe something in IIS. ASP Error 500 Please: Don't forget to click "Mark as Answer" on the post that helped you. Classic Asp Error Logging scriptErrorSentToBrowser This is an optional Boolean attribute that specifies whether the writing of debugging specifics to the client browser is enabled.
All the Googling has resulted in errors with line numbers. Classic Asp On Error Goto The same would apply to the .Description and .Source results you saw: Error at 9:14:21 AM <---- Err.Line fails here; Err object is updated -----> Err.Number: 438 <---- Err.Line failure code By a scripting language? Forum New Posts FAQ Calendar Community Groups Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New?
Colonists kill beasts, only to discover beasts were killing off immature monsters PuTTY slow connecting to Linux SSH server Zero Emission Tanks Proving the regularity of a certain language My girlfriend Classic Asp Error 424 string" on error resume next Set objRS = Conn.Execute(strQuery) if err.number<>0 then message = "
Warning: An error occured during this database transaction." message = message & "
" & err.number & "
For more information about UAC, see the following documentation: User Account Control Customizing Classic ASP Error Messages The configuration settings that you use to customize these settings are in the following http://www.codingforums.com/asp/45326-cant-return-line-number-error.html Beautify ugly tabu table My girlfriend has mentioned disowning her 14 y/o transgender daughter Is it decidable to check if an element has finite order or not? Classic Asp On Error Resume Next Example On the side Robert occasionally plays guitar and hammered dulcimer for a musical group that’s a mixture of acoustic jazz, bluegrass, and celtic influences (http://www.hammeron.com/). Classic Asp On Error Goto 0 Read More » REPORT ERROR PRINT PAGE FORUM ABOUT × Your Suggestion: Your E-mail: Page address: Description: Submit × Thank You For Helping Us!
For example, you could add a rule to trace HTTP 500 errors automatically, which the ASP engine generates when an error occurs. check my blog asked 5 years ago viewed 4599 times active 4 years ago Linked 0 Classic ASP - Error Catching 0 Classica ASP: Log file Related 7Classic ASP Exception Logging (500 and 500.100 Just do a search from explorer, set the file type to *.asp and define folder and text to search for. Can one nuke reliably shoot another out of the sky? Classic Asp Error Object
The err.number property will be the number of the error. Code: <% dim objErr set objErr=Server.GetLastError() response.write("ASPCode=" & objErr.ASPCode) response.write("
") response.write("ASPDescription=" & objErr.ASPDescription) response.write("
") response.write("Category=" & objErr.Category) response.write("
") response.write("Column=" & objErr.Column) response.write("
") response.write("Description=" & objErr.Description) response.write("
If you have any feedback about my replies, please contact [email protected] Microsoft One Code Framework ‹ Previous Thread|Next Thread › This site is managed for Microsoft by Neudesic, LLC. | © Classic Asp Get Url While the error message is anything but pretty or profoundly descriptive, I do know that I need to fix something that's wrong on line 6 of the script. Thanks Jul 12, 2005,12:18 #2 mikeistyke View Profile View Forum Posts SitePoint Addict Join Date Dec 2004 Location staunton Posts 207 Mentioned 0 Post(s) Tagged 0 Thread(s) Make sure you declared
asked 4 years ago viewed 7366 times active 1 year ago Linked 1 Is there a way to redirect Classic ASP errors differently from .NET errors? 0 How do i write As an aside, I'm having a somewhat similar issue with Outlook, when I try to attach files from my hard drive, the window won't show me any files with a ..ZIP Related 7Classic ASP Exception Logging (500 and 500.100 errors)3Custom 404 not found page in iis 7 for Classic ASP4What other 5xx errors could be occuring and how to I find/track them?2ELMAH Classic Asp Get Url Path Tenant paid rent in cash and it was stolen from a mailbox.
All the Googling has resulted in errors with line numbers. And also how to get it to output the line number causing the error. Funny timing. http://ebprovider.com/classic-asp/classic-asp-error-handling-line-number.php reference: http://www.devguru.com/Technologies/...rr_source.html Last edited by BuddhaMan; 09-30-2004 at 06:10 AM.