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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:11:20+00:00 2026-05-24T17:11:20+00:00

I am working on a .net 3.5 REST WCF application. I’ve found WebFaultException is

  • 0

I am working on a .net 3.5 REST WCF application.
I’ve found WebFaultException is the best way to handle errors in REST services.
I can’t seem to find the WebFaultException class in .net 3.5.
Was it introduced in .net 4 or am I missing a namespace import?
Is there a work around that implements WebFaultException behavior in .net 3.5?
I appreciate your help.

  • 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-24T17:11:20+00:00Added an answer on May 24, 2026 at 5:11 pm

    It’s true, WebFaultException was only introduced in the .NET 4.0 timeframe. Before that you were responsible for setting all of the HTTP properties on the WebOperationContext.Current.OutgoingResponse and handling failure control flow yourself rather than relying on throwing exceptions.

    That said, you can create your own WebFaultException class in 3.5 and then implement a WCF IErrorHandler that generically retrieves the HTTP information off your custom WebFaultException class and transfers them to the various properties of the WebOperationContext.Current.OutgoingResponse and creates a Message instance for the body (if any) in the ProvideFault implementation.

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

Sidebar

Related Questions

I created a wcf Rest service using net framework 4 and IIS 6. I
I'm working on a web application project using ASP.NET MVC3 and database in SQL
I am working on a client for a REST API. The server returns 4xx
I've been working through various samples to try and piece together a solution for
asp.net mvc 3 with razor I have a script inside a partial view <script
I'm currently working with MVC 1.0 and have never worked with AJAX before and
I am working on an ASP MVC 3 app and I'm writing a custom
I've been working on a uniform payments system similar to Active Merchant for the
I'm trying to make a sticky footer, but it's not quite working for me.
I am a fairly experienced (mid-level) developer that has spent quite a bit of

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.