Cannot access metadata for WCF service -
please help me prepare next error. web.config file
<configuration> <system.web> <compilation debug="true" targetframework="4.0" /> </system.web> <system.servicemodel> <services> <service name="mixuservice.mainservice" behaviorconfiguration="mainservicebehavior"> <endpoint address="" binding="basichttpbinding" contract="mixuservice.imainservice" /> <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange" /> </service> <service name="mixuservice.rpxreportservice" behaviorconfiguration="rpxreportservicebehavior"> <endpoint address="" binding="basichttpbinding" contract="mixuservice.irpxreportservice" /> <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange" /> </service> </services> <behaviors> <servicebehaviors> <behavior name="rpxreportservicebehavior"> <servicemetadata httpgetenabled="true" policyversion="policy15" /> <servicedebug includeexceptiondetailinfaults="false" /> </behavior> <behavior name="mainservicebehavior"> <servicemetadata httpgetenabled="true" policyversion="policy15" /> <servicedebug includeexceptiondetailinfaults="false" /> </behavior> </servicebehaviors> </behaviors> <servicehostingenvironment multiplesitebindingsenabled="true" /> </system.servicemodel> <system.webserver> <modules runallmanagedmodulesforallrequests="true"/> </system.webserver> </configuration> when run wcf test client, error:
cannot obtain metadata http://myhost:6541/rpxreportservice.svc
please help me. !
wcf
No comments:
Post a Comment