Last post Jan 24, 2014 12:50 PM by Siva Krishna Macha
Jan 24, 2014 06:50 AM|p.pooja10|LINK
Please find below app.config of my project. I have defined a behavior named as ProductsBehavior and also declared it in my service node. But when i am browsing my service, it is showing me this message: Metadata publishing for this service is currently disabled.
<?xml version="1.0" encoding="utf-8" ?>
<compilation debug="true" />
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<service name="WCFProducts.ProductService" behaviorConfiguration="ProductsBehavior">
<!-- Service Endpoints -->
<!-- Unless fully qualified, address is relative to base address supplied above -->
<endpoint address ="" binding="basicHttpBinding" contract="WCFProducts.IProductsService" >
Upon deployment, the following identity element should be removed or replaced to reflect the
identity under which the deployed service runs. If removed, WCF will infer an appropriate identity
<!-- Metadata Endpoints -->
<!-- The Metadata Exchange endpoint is used by the service to describe itself to clients. -->
<!-- This endpoint does not use a secure binding and should be secured or removed before deployment -->
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
<behavior name="ProductsBehavior" >
<serviceMetadata httpGetEnabled="true" />
Jan 24, 2014 12:50 PM|Siva Krishna Macha|LINK
Just a query. Is your app.config file same as web.config file?
I hope you have hosted your application in IIS - If so, you should have the web.config file with the same contents.