Click here to Skip to main content
12,957,731 members (62,330 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<system.serviceModel>
<services>
<!-- 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"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="returnFaults" >
<serviceDebug includeExceptionDetailInFaults="true" />
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<system.web>
<compilation debug="true"/>
</system.web>
</configuration>

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
Top Experts
Last 24hrsThis month
OriginalGriff 6,994
CHill60 3,550
Maciej Los 3,312
ppolymorphe 2,170
Jochen Arndt 1,973


Advertise | Privacy | Mobile
Web02 | 2.8.170525.1 | Last Updated 20 Mar 2013
Copyright © CodeProject, 1999-2017
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