Wcf 元数据不';不出现

Wcf 元数据不';不出现,wcf,configuration,metadata,Wcf,Configuration,Metadata,我正在尝试创建WCF服务,但元数据未显示,我尝试: <system.serviceModel> <services> <service name ="MyNamespace.IMyContract" behaviorConfiguration="mex"> <endpoint address = "" binding = "wsHttpB

我正在尝试创建WCF服务,但元数据未显示,我尝试:

<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" />