Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 772581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:49:27+00:00 2026-05-14T18:49:27+00:00

I am making MSSQL stored procedure CLR calls from ASP pages. When an exception

  • 0

I am making MSSQL stored procedure CLR calls from ASP pages. When an exception occurs, it is logged and then rethrown. In this scenario I need to be able to handle the exception (if possible) in the ASP page. Note that I cannot move away from classic ASP in this instance; I am stuck within a legacy system for this project. Please let me know if you know of a way to handle the exceptions in classic ASP. I appreciate the help!

Thanks,
Tyler

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:49:28+00:00Added an answer on May 14, 2026 at 6:49 pm

    The code language of classic ASP is VBScript, so you have to make do with the error handling capabilities of that language, by using the “On Error …” construct. You need to decide on whether to make a general error handler or insert some specific error handling logic for the SQL calls.

    These are your options for error handling:

    On Error Goto 0        ' Turns off error trapping. This is most likely what you got now
    On Error Resume Next   ' In case of error, simply execute next statement. Not recommended !
    On Error Goto <label>  ' Go to the specified label on an Error.
    

    If you use On Error Goto …, The Err object will contain error information. This means you should be able to write somehting like:

    On Error Goto errorHandler
    ' Your code here.
    
    errorHandler:
    ' Handle the error somehow. Perhaps log it and redirect to a prettier error page.
    Response.Write Err.Number
    Response.Write Err.Description
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making the transition from DataTableAdapters in MSVS to creating Stored Procedures in
I'm experimenting by making a social network from scratch in PHP/MySQL, but I'm having
I am making a cookie based favorite system and need to join data from
i'm creating a simple slideshow. 4 images coming from db by php stored in
I'm making a gallery website. Photos and albums should be hidden from the public
We have a application that is making requests to a MSSQL DB via Entity
I'm making a little voting tool (voting from 1 to 5) and I have
I'm making a jokes website. Each joke is stored in a record in mysql
Good day! Iam making a query wherein the parameters will be stored in the
I am making an ordering form and all of the products' data are stored

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.