Click here to Skip to main content
15,886,065 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
<system.serviceModel>    
<client>      
  <endpoint address=".../ConnectService.svc"
            binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IConnectService"
  contract="TestApp.Services.IConnectService" name="BasicHttpBinding_IConnectService" />
</client>

<behaviors>
  <serviceBehaviors>

    <behavior name="ConnectServiceBehavior">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true" />
    </behavior>

    <behavior name="">
      <serviceMetadata httpGetEnabled="true"/>
      <serviceDebug includeExceptionDetailInFaults="false"/>
    </behavior>

  </serviceBehaviors>

<endpointBehaviors>
  <behavior name="ConnectEndPointBehavior">
      <enableWebScript />
  </behavior>
</endpointBehaviors>
</behaviors>

<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true"/>

<services>     

  <service behaviorConfiguration="ConnectServiceBehavior" name="TestApp.Services.ConnectService">
    <endpoint address="" binding="basicHttpBinding" contract="TestApp.Services.IConnectService" behaviorConfiguration="ConnectEndPointBehavior"/>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  </service>

</services>

 </system.serviceModel>


I am getting a server error like

C#
The endpoint at '.../ConnectService.svc'does not have a Binding with the None MessageVersion.  'System.ServiceModel.Description.WebScriptEnablingBehavior' is only intended for use with WebHttpBinding or similar bindings.


Any suggestion...
Posted
Updated 11-Aug-14 22:53pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900