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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:46:43+00:00 2026-05-21T06:46:43+00:00

While implementing a WCF client endpoint, my config file had the following endpoint entry:

  • 0

While implementing a WCF client endpoint, my config file had the following endpoint entry:

<endpoint address="http://localhost/MyProject/Services/MyService.svc/MyService"
      binding="basicHttpBinding" 
      contract="MyNamespace.IContract" /> 

At this point the service is NOT hosted in IIS. Essentially, I am using Cassini to call through to the app. This configuration works fine. However, if I remove the /Myservice element and my config looks like this:

    <endpoint address="http://localhost/MyProject/Services/MyService.svc"
      binding="basicHttpBinding" 
      contract="MyNamespace.IContract" /> 

I get the following exception:

System.ServiceModel.ProtocolException: Content Type text/xml; charset=utf-8 was not supported by service. The client and service bindings may be mismatched

Why does the second config breaks while the first one works? What’s so special about the /MyService part of the url?

Thanks!

  • 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-21T06:46:44+00:00Added an answer on May 21, 2026 at 6:46 am

    I suspect it’s a problem with the way you defined the endpoint on the service side. Try this:

      <service
        name="NameOfYourService">
    
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost/MyProject/Services/"/>
          </baseAddresses>
        </host>
    
        <endpoint
          address=""
          binding="basicHttpBinding"
          contract="Namespace.Contract" />
    
      </service>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the following InvalidOperationException while implementing a MonoTouch client for a simple
While implementing XML file reading/writing in my application I saw that when I call
While implementing a FIFO I have used the following structure: struct Node { T
I am getting following exception while implementing mail feature for my local machine please
My WCF Service is complete with .NET 3.5 and I used wsHttpBinding while implementing
While implementing Multithreaded Cache, i found this article on MSDN. http://msdn.microsoft.com/en-us/library/system.threading.readerwriterlockslim.aspx This is for
I've got a client/server setup that I am implementing using a WCF Service (
I am trying to match the following while implementing a GridBagLayout. The GBL is
I herewith a problem that i am facing while implementing PDF file in iPhone.
while implementing an inline search function for our local file archive I've come up

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.