Email: Password:       Forgot Password 
A Saarsha Group Online Community for dot net codes group like C#, Asp.NET, VB.NET, Sharepoint, JavaScript, JQuery, Ajax, SQL, WCF, WPF.

WCF Service does not have a binding with the none messageversion

Viewed:  5311 
Posted On:  26/05/2015 18:32:15 
While working with WCF service I got this error? 


While building WCF REST service if you get below error message:


Image 1.

Then make sure your WCF service Project's web.config file should have below System.ServiceModel setting:

          <!-- To avoid disclosing metadata information, set the values below to false before deployment -->
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="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" />
          <webHttp helpEnabled="True"/>
      <add binding="webHttpBinding" scheme="http" />
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
        <standardEndpoint name="" crossDomainScriptAccessEnabled="true" />

Now run your WCF REST service:


Image 2.

         HOME   |   Submit Article   |   Contact Us   |   About Us   |   Terms & Condition   |   Advertise With us