Hi, thank you for reading.
I am trying to get a service hosted in IIS 7.5 that has several endpoints.
I have a feeling that the problem lies in my web.config, but I have posted my service code here. There is no interface file since I am using the new WCF 4 features, there is also no .svc file there.
All routing, from my understanding, is processed in Global.asax.cs using the RouteTable function.
Regardless of the code in / config -
[ServiceContract] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
And now the configuration with the changes that I thought would need to be made (I'm not sure that I need to save the standardEndpoints block, but with or without it, I still get error messages.
>
<services> <service name="AiSynthDocSvc.Service1" behaviorConfiguration="HttpGetMetadata"> <endpoint name="rest" address="" binding="webHttpBinding" contract="AiSynthDocSvc.Service1" behaviorConfiguration="REST" /> <endpoint name="soap" address="soap" binding="basicHttpBinding" contract="AiSynthDocSvc.Service1" /> <endpoint name="mex" address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> </service> </services> <behaviors> <endpointBehaviors> <behavior name="REST"> <webHttp/> </behavior> </endpointBehaviors> <serviceBehaviors> <behavior name="HttpGetMetadata"> <serviceMetadata httpGetEnabled="true" /> </behavior> </serviceBehaviors> </behaviors> <standardEndpoints> <webHttpEndpoint> <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true"/> </webHttpEndpoint> </standardEndpoints>
The Global.asax.cs file is left alone.
Again I'm sure this has something to do with my configuration. The error I get when I try to access any of the specified endpoints is
Endpoint in '' has no binding with None MessageVersion. "System.ServiceModel.Description.WebHttpBehavior" is for use only with WebHttpBinding or similar bindings.
Anyone have any ideas on this?
Thanks,
Zachary Carter
source share