Here is the information on how to Disable Meta Data Publishing while WCF hosting.
Metadata publishing for this service is currently disabled.
Mainz 0-2 Eintracht Frankfurt Highlights & Goals - Bundesliga 9 Jan 2021 Sevilla 3-2 Real Sociedad Highlights - La Liga, 9 Jan 2020 Everton 2-1 Rotherham United Highlights & Goals - FA Cup 9 Jan 2021. Welcome to the official Eintracht Frankfurt YouTube channel. Get closer to your favourite Bundesliga club with exclusive behind-the-scenes footage, news, interviews and training footage.
Manually Create the AppData folder under the published application's root folder. Right click at the AppData folder and select Publish AppData folder. Add an item into the AppData folder and set the item to be include in the publish. Best Regards, Jean.
When you see this error message on the client machine web browser, it means the web.config file is not configured to expose the meta data information.
If you want to simulate this error, then you have to do the following two things:
This is a Windows© Communication Foundation service.
Metadata publishing for this service is currently disabled.
If you have access to the service, you can enable metadata publishing by completing the following steps to modify your web or application configuration file:
1. Create the following service behavior configuration, or add the <serviceMetadata> element to an existing service behavior configuration:
<behaviors>
<serviceBehaviors>
<behavior name='MyServiceTypeBehaviors' >
<serviceMetadata httpGetEnabled='true' />
</behavior>
</serviceBehaviors>
</behaviors>
2. Add the behavior configuration to the service:
<service name='MyNamespace.MyServiceType' behaviorConfiguration='MyServiceTypeBehaviors' >
Note: the service name must match the configuration name for the service implementation.
3. Add the following endpoint to your service configuration:
<endpoint contract='IMetadataExchange' binding='mexHttpBinding' address='mex' />
Note: your service must have an http base address to add this endpoint.
The following is an example service configuration file with metadata publishing enabled:
<configuration>
<system.serviceModel>
<services>
<!-- Note: the service name must match the configuration name for the service implementation. -->
<service name='MyNamespace.MyServiceType' behaviorConfiguration='MyServiceTypeBehaviors' >
<!-- Add the following endpoint. -->
<!-- Note: your service must have an http base address to add this endpoint. -->
<endpoint contract='IMetadataExchange' binding='mexHttpBinding' address='mex' />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name='MyServiceTypeBehaviors' >
<!-- Add the following element to your service behavior configuration. -->
<serviceMetadata httpGetEnabled='true' />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
For more information on publishing metadata please see the following documentation: http://go.microsoft.com/fwlink/?LinkId=65455.
A sample web.config that does not expose the meta data is given below:
<system.serviceModel>
<services>
<servicename='Wcf_Test_Service.TestService'behaviorConfiguration='MyServiceTypeBehaviors'>
<endpointaddress='
binding='basicHttpBinding'
contract='Wcf_Test_Service.ITestService' >
</endpoint>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behaviorname='MyServiceTypeBehaviors'>
<serviceMetadatahttpGetEnabled='false'/>
<serviceDebugincludeExceptionDetailInFaults='true'/>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironmentmultipleSiteBindingsEnabled='true'>
<serviceActivations>
<addrelativeAddress='TestService.svc'service='Wcf_Test_Service.TestService'/>
</serviceActivations>
</serviceHostingEnvironment>
</system.serviceModel>