Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: WCF C#4.0 ASP.NET4.0
Hi, I'm working on a ASP.Net project and It contains a AJAX-enabled WCF service. when I run that service always I get a message saying "Metadata publishing for this service is currently disabled." So I tried to enable the service by editing the web.config file but i couldn't do it. I don't know much about WCF services. since this is a ASP.Net project I don't have a app.config file. so I need a little help to enable this metadata thing to run my web service. thanks. my web.config file is given below.


<?xml version="1.0"?>
<configuration xmlns="">
<!-- Before deployment, you should remove the returnFaults behavior configuration to avoid disclosing information in exception messages -->
<service name="ImageService" behaviorConfiguration="returnFaults">
<endpoint contract="ImageService" binding="mexHttpBinding" address="mex"/>
<behavior name="returnFaults" >
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" />
<compilation debug="true"/>

Posted 20-Mar-13 0:48am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,696
1 Sergey Alexandrovich Kryukov 6,675
2 CPallini 5,315
3 George Jonsson 3,584
4 Gihan Liyanage 2,650

Advertise | Privacy | Mobile
Web04 | 2.8.140921.1 | Last Updated 20 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100