Metadata publishing for this service is currently disabled (WCF)

Obviously blog is about enabling Metadata publishing 😉 just follow me :$ for couple of steps

Add <behavior> like below

<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name=”metadataBehavior”>
<serviceMetadata httpGetEnabled=”true” />
</behavior>
</serviceBehaviors>

AND

<services>
<service name=”BLL.CategorySrv” behaviorConfiguration=”metadataBehavior”>
<host>
<baseAddresses>
<add baseAddress=”http://localhost:2514/CategorySrv.svc&#8221;/>
</baseAddresses>
</host>
<endpoint address=”mex” binding=”mexHttpBinding” contract=”IMetadataExchange” />

rest leave as it is 😉 but follow with some brain 😀 coz u would need to change text in bold according to your web service Name (namespace, class name) and base address most probably.

best of luck

Advertisements

One response to “Metadata publishing for this service is currently disabled (WCF)

  1. If You are trying to get the proxy class and the config file through the svcutil.exe and facing
    problem then modify the config file as below. You need to have the IMetadataExchange

    i.e
    see code below.
    As well You need to have …..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s