ok, my file has this structure.
<system.serviceModel> <services> <service name="ManyaWCF.ServiceManya" behaviorConfiguration="ServiceBehaviour"> <endpoint address="" binding="webHttpBinding" contract="ManyaWCF.IServiceManya" behaviorConfiguration="web"> </endpoint> </service> </services> <behaviors> <serviceBehaviors> <behavior name="ServiceBehaviour"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> <endpointBehaviors> <behavior name="web"> <webHttp /> </behavior> </endpointBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel>
I got the same web.config in another wcf and worked as a champion, ofc with different folders and files. my folder structure is as follows.

When I try to play it, I get it,
Service This is a Windows © Communication Foundation. The metadata publishing for this service is currently disabled. If you access the service, you can enable metadata publishing by completing the following steps to modify the configuration file or web application: 1. Create the following service behavior configuration, or add the item to a configuration <serviceMetadata> existing service behavior: <behaviors> <serviceBehaviors> <behavior name="MyServiceTypeBehaviors"> httpGetEnabled="true" <serviceMetadata /> </ Behavior> </ ServiceBehaviors> </ Behaviors> 2. Add the behavior configuration to the service: name="MyNamespace.MyServiceType" <service behaviorConfiguration="MyServiceTypeBehaviors"> Note: The service name must match the name of the configuration for the service implementation. 3. Add the following to end service configuration: binding="mexHttpBinding" contract="IMetadataExchange" <endpoint address="mex" /> Note: the service must have an http base address to add this. Here is an example of a service configuration file with metadata publishing enabled: <configuration> <system.serviceModel> <services> <! - Note: the service name must match the name of the configuration for the service implementation. -> name="MyNamespace.MyServiceType" <service behaviorConfiguration="MyServiceTypeBehaviors"> <! - Add the following end. -> <! - Note: the service must have an http base address to add this. -> binding="mexHttpBinding" contract="IMetadataExchange" <endpoint address="mex" /> </ Service> </ Services> <behaviors> <serviceBehaviors> <behavior name="MyServiceTypeBehaviors"> <! - Add the following item to the service behavior configuration. -> httpGetEnabled="true" <serviceMetadata /> </ Behavior> </ ServiceBehaviors> </ Behaviors> </ System.serviceModel> </ Configuration> For more information about publishing metadata, see the following documentation: http://go.microsoft.com/fwlink/?LinkId=65455 (may be in English).
So, I made only 1 wcf and worked perfectly with the same web.conif. My luck from experience and knowledge about it kills me. Any clue?
thanks in advance.
source share