Wcf 元数据不';不出现
我正在尝试创建WCF服务,但元数据未显示,我尝试:Wcf 元数据不';不出现,wcf,configuration,metadata,Wcf,Configuration,Metadata,我正在尝试创建WCF服务,但元数据未显示,我尝试: <system.serviceModel> <services> <service name ="MyNamespace.IMyContract" behaviorConfiguration="mex"> <endpoint address = "" binding = "wsHttpB
<system.serviceModel>
<services>
<service
name ="MyNamespace.IMyContract"
behaviorConfiguration="mex">
<endpoint
address = ""
binding = "wsHttpBinding"
contract = "MyNamespace.IMyContract"
/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="mex">
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
</system.serviceModel>
我尝试使用http://MyServer/receptor.svc
但显示此服务的元数据发布当前已禁用。
和http://MyServer/mex
显示了404
,为什么?我做错了什么
OBS1:我在Windows 7上的IIS7.5中发布了我的服务
OBS2:如果我删除behaviorConfiguration=“mex”
元数据,但是使用basicHttpBinding
而不是wsHttpBinding
,我忘了放:
<endpoint address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />