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

  • Home
  • SEARCH
  • 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 501541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:12:01+00:00 2026-05-13T06:12:01+00:00

I am trying to find out a way to handle unhandled exceptions at server

  • 0

I am trying to find out a way to handle unhandled exceptions at server side. I want control over exception handling at Domain Service level so that when any operation is called then I can log the exception and wrap it in some beautiful words to send it to the client.
I found many ways for WCF and classic web services but nothing for RIA services.
Please provide your suggestions.

  • 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-13T06:12:01+00:00Added an answer on May 13, 2026 at 6:12 am

    You need to override the DomainService.OnError method as described in this WCF RIA Services Exception Handling blog entry. I’ve done this in a base DomainService class rather than in each individual DomainService class in my application as shown below. The errorInfo.Error property does not have a setter so I don’t think you can replace the exception object with your own, but the <system.web><customErrors mode="On" /> config element can prevent the details of the exception being exposed to the client.

    [EnableClientAccess()]
    public class DomainServiceBase : DomainService
    {
        protected override void OnError(DomainServiceErrorInfo errorInfo)
        {
            Logger.WriteException(errorInfo.Error);
            base.OnError(errorInfo);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to find out the best way of handling exceptions, I have
I am trying to find out the best way to handle serialisation in my
I'm trying to find out the best way to handle transactions at object level
I'm trying to find out a way to know the index of a anchor
I'm trying to figure out a way to find out which files were affected
I am trying to find out if there is a more optimal way for
Hi I'm trying to find out if there is a way to set the
I'm trying to figure out the best way to handle a dropdown list where
I'm trying to figure out what the best way to handle a JSON object
I'm working with pysvn, and I'm trying to find a decent way to handle

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.