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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T09:32:40+00:00 2026-05-15T09:32:40+00:00

Let say I have a WCF Foo(int param); The client is passing in a

  • 0

Let say I have a WCF

Foo(int param);

The client is passing in a JSON string. Instead of passing in an integer, they pass in a string.

The system now returns a 500 error back to the client. The event log says that I need to add includeExceptionDetailInFaults=”true” to my config file if I want a friendly message to be returned. I go and do that but then I still get the 500 error and an event log error stating that I cannot add the ‘serviceDebug’ extension to my endpoint behavior because the underlying behavior type does not implement the IEndpointBehavior.

What does that suppose to mean?

  • 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-15T09:32:41+00:00Added an answer on May 15, 2026 at 9:32 am

    First of all: where did you add the <serviceDebug> behavior, and how? Can you show us? The <serviceDebug> needs to be added to the <serviceBehavior> section on your server – not the endpoint behavior section. It’s a service behavior, after all (it affects the whole service) – not an endpoint behavior (which affects only a single endpoint but not others).

    So you should have:

      <serviceBehaviors>
        <behavior name="debug">
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
    

    in your server-side config (web.config or app.config), and then apply that service behavior to your service tag:

    <services>
       <service name="...."
                behaviorConfiguration="debug">
        ....
    

    Secondly: error 500 is an internal server error, so this means, the server couldn’t interpret and handle your input. The best bet would be to do some client-side validation before actually sending this input to the service, to avoid these kind of errors.

    If you cannot do this, then maybe you need to add some more logic to your service so you can capture and figure out these kind of errors before they blow up your service code.

    And thirdly, the ultimate solution: you could write a client-side parameter inspector to catch these wrong parameters even before they’re being sent to the server, and react accordingly. WCF is very extensible that way. See the MSDN How To Inspect Or Modify Parameters or this blog post if you’re interested in learning more about parameter inspectors.

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

Sidebar

Related Questions

Let's say I have the following WCF implementation: public Stream Download(string path) { FileStream
Let's say I have a WCF contract such as [ServiceContract] public interface IContract {
Let's say I have a WCF service which has a method returning object Person.
I have WCF service folder let's say : TestService and it contains following folders
I have a WCF service ( Let's say WCFService1 ) is deployed on two
I have a WCF service load balanced across three different machines. Let's say these
I'm new to WCF. Let's say I have two asp.net apps, one that uses
Let's say you have a product which consists of multiple client UI's (desktop, silverlight,
Let's say I have a relational database with tables: OrderableCategories and Orderables. They are
let say I have this code Map<String, String> list = new HashMap<String, String>(); list.put(number1,

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.