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 364485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:26:34+00:00 2026-05-12T13:26:34+00:00

So I want to be able to just log all unhandled exceptions to the

  • 0

So I want to be able to just log all unhandled exceptions to the event log without having to catch all the exceptions manually and write them out.

I wanted to use the health monitoring functionality within a WCF service, the problem is that this only catches errors generated by asp.net and I specifically want to also catch SPException errors thrown from calling into SharePoint.

It seems that exceptions are only handled if they call the raise method on the WebBaseErrorEvent in the System.Management namespace, I assume ASP.Net exceptions do this inherently but SPExceptions do not. So my only option is the manually catch SPException errors and write them out to the event log or create a new WebBaseErrorEvent object and call raise on it which defeats what I want to achieve.

Am I missing something is there an easier way?

  • 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-12T13:26:35+00:00Added an answer on May 12, 2026 at 1:26 pm

    Looked at ELMAH

    I know yours are a little more deep down the stack but would these not come through?

    TBH, any more with regard SPException is beyond my ken, but will leave blog of note. To think someone has a blog called sharepoint exception!

    And credit to @Alex for pointing out this question in comments.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My dll is used by a module which dirtily catch all exceptions and just
I want to be able to provide a button to my users to just
I want to be able to develop code using Visual Studio 2010. I just
I want to be able to bind a single and double click event to
I want to be able to send myself all the javascript errors on a
Following this question it gives me just 1st match. I want to get all
I am reading log files but not all lines want to be processed straight
I'm using LaTeX and BibTeX for an article, and I want to able to
Want to be able to provide a search interface for a collection of objects
I want to be able to take an image that i have already captured

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.