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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:56:33+00:00 2026-06-15T09:56:33+00:00

Runtime Context: a WCF service used WSDualHttpBinding running on Linux by Mono. I use

  • 0

Runtime Context:
a WCF service used WSDualHttpBinding running on Linux by Mono.
I use app.config ,create a EndPoint used WSDualHttpBinding

app.config for service (partial)

 <endpoint address="http://192.168.0.101:8889"
              binding="wsDualHttpBinding" bindingConfiguration="wsDualHttp_Binding"
              contract="DynIPServiceContract.IDynIPService" />

The service Code:

     static void Main(string[] args)
    { 
        try
        {
            ServiceHost sh = new ServiceHost(typeof(DynIPService.DynIPService));
            sh.Open();
            foreach (var ep in sh.Description.Endpoints)
            {
                Console.WriteLine("Address: {0}, ListenUri: {1}, ListenUriMode: {2} ", ep.Address, ep.ListenUri, ep.ListenUriMode);
            }
            Console.WriteLine("Service is running");
        }
        catch (Exception ex)
        {
            Console.WriteLine("Error:" + ex.Message);
            throw;
        }
        finally
        {
           Console.ReadKey();
        }
    }

Exception:
The default value for property ‘textEncoding’ has a different type than the one of the property itself: expected System.Text.Encoding but was System.String
(About the detail info, please take a look at the snapshot of exception)
enter image description here

  • 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-15T09:56:33+00:00Added an answer on June 15, 2026 at 9:56 am

    Well, I just had a quick look at the code and that exception should actually be the least of your problems 😉

    The real problem is that WSDualHttpBinding is not yet supported in Mono.

    CreateBindingElements() is an important abstract method in System.ServiceModel.Channels.Binding which must be implemented by a binding.

    mcs/class/System.ServiceModel/System.ServiceModel/WSDualHttpBinding.cs has last been changed in 2008 and it’s simply throwing a NotImplementedException:

    https://github.com/mono/mono/blob/master/mcs/class/System.ServiceModel/System.ServiceModel/WSDualHttpBinding.cs#L140

    I must admit that I also haven’t used WSDualHttpBinding on Windows before, so I don’t know which binding elements it is using (and whether they’re already implemented in Mono). These binding elements provide the core functionality, so it’s hard to say how long it would take to implement this binding.

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

Sidebar

Related Questions

I am trying to create a common service library shared between a WCF web
CentOs 5.4, OpenJDK Runtime Environment (build 1.6.0-b09) MathContext context = new MathContext(2, RoundingMode.FLOOR); BigDecimal
I have the following code in a WCF Service that returns a string, and
I am using the WCF JSON serializer to produce JSON for use as return
I have a WCF web service called by an ASP .Net web site. In
I am trying to POST JSON to a WCF service. The json object contains
I have a WCF service to communicate with a Mathematica Kernel to evaluate arbitrary
Context: I am prototyping in prep for (maybe) converting my WinForms app to WPF.
I have WCF Service Library implemented in Fluent NHibernate and hosted under Windows Service.
I’m having a WCF REST service hosted in IIS using .NET 4 RC. The

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.