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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T23:26:10+00:00 2026-06-04T23:26:10+00:00

I have a WCF service library project. I am trying to generate a wsdl

  • 0

I have a WCF service library project. I am trying to generate a wsdl file by launching WCF Test Client by running it in Visual studio (pushed F5). It launched WCF Test Client but it says “Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.”. It also gives me the below error message.

c:\Users\xxx\AppData\Local\Temp\Test Client Projects\10.0\354421b1-b65e-45fc-8d98-ac87254a5903\Client.cs(911,26) : error CS0644: ‘System.ComponentModel.PropertyChangedEventHandler’ cannot derive from special class ‘System.MulticastDelegate’

I added servive behavior to expose Metadata as follows. I am not sure what else I am missing here to be able to generate a wsdl file. Thanks for any help!

<services>
  <service name="CU.Customer" behaviorConfiguration="Metadata">
    <endpoint address="" binding="wsHttpBinding" contract="CU.ICustomer">
      <identity>
        <dns value="localhost"/>
      </identity>
    </endpoint>
    <endpoint name="mex" address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
    <host>
      <baseAddresses>
        <add baseAddress="http://localhost:8732/Design_Time_Addresses/CustomerService/Service1/"/>
      </baseAddresses>
    </host>
  </service>
</services>
<behaviors>
  <serviceBehaviors>
    <behavior name="Metadata">
      <!-- To avoid disclosing metadata information, 
      set the value below to false and remove the metadata endpoint above before deployment -->
      <serviceMetadata httpGetEnabled="True"/>
      <!-- To receive exception details in faults for debugging purposes, 
      set the value below to true.  Set to false before deployment 
      to avoid disclosing exception information -->
      <serviceDebug includeExceptionDetailInFaults="False"/>
    </behavior>
  </serviceBehaviors>
</behaviors>
  • 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-06-04T23:26:11+00:00Added an answer on June 4, 2026 at 11:26 pm

    There is nothing wrong with your metadata bindings, but you have a compiler error in your service. This is preventing WCF from building your service class, which is needs to do to expose the metadata endpoint.

    Fix this error first:

    ‘System.ComponentModel.PropertyChangedEventHandler’ cannot derive from special class ‘System.MulticastDelegate’

    The error (note that it’s in a temp file) is happening when WCF is trying to compile the service contracts locally into classes it can use to access the service. This means that you’re running into something that is legal in C#, but not legal in WCF. Most likely, given the error, you have a class that implements INotifyPropertyChanged being used as a data contact in your operation contract.

    Note that every class that gets serialized across a WCF channel is a data contract. Typically you would decorate your class with DataContract and each field with DataMember attributes, which directs the serializer how to handle your class. But if you don’t, and you include your class as a parameter or return value in an OperationContract, WCF just pretends like you put those attributes on every public field in your class.

    In this case, my guess is you have a class, that you are passing in or out of a service call, that has:

     public event PropertyChangedEventHandler PropertyChanged;
    

    That is a public field, so unless you tell WCF otherwise, it will try to serialize it as part of the implicit data contract. But there are certain types that cannot be serialized this way, and MulticastDelegate is one of them.

    To fix, and in the future avoid, this problem, always decorate the types you use for services with DataContract and DataMember explicitly. It’s perfectly safe to put those attributes on any class — if you never try to serialize it, the attributes are simply ignored.

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

Sidebar

Related Questions

I have a Visual Studios C# Class library(A5Lib) and a WCF Service project(A5Services). the
I have WCF Class library, WCF Service Client and WCF Service Server in one
I currently have a wcf service library project that includes my service contract &
I created a WCF service library project in my solution, and have service references
I have a .NET 3.5 WCF service hosted in IIS. The project service library
I have a WCF Service application project , a class library project (acts as
I have a WCF service library that reads a xml file that's located in
I have a solution in VS 2010: a WCF Service Library project (NotifyService) and
I am trying to access WCF service through AJAX in Visual Studio 2008. For
I have created a new WCF service library type project. I have created a

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.