C# 无法在wcf中添加新服务。未能添加服务。服务元数据可能无法访问

C# 无法在wcf中添加新服务。未能添加服务。服务元数据可能无法访问,c#,web-services,wcf,C#,Web Services,Wcf,我已经在WCF中创建了一个服务 当我尝试添加另一项服务时,我遇到了此错误 Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata. 另一个服务正在正常运行,但只有在运行新服务时才会出现错误 这是我的web.config <services> <service name="nam

我已经在WCF中创建了一个服务 当我尝试添加另一项服务时,我遇到了此错误

Failed to add a service. Service metadata may not be accessible. 
Make sure your service is running and exposing metadata.
另一个服务正在正常运行,但只有在运行新服务时才会出现错误

这是我的web.config

 <services>
      <service name="namespace.CreateCompetition">
        <endpoint address="mex" binding="mexHttpsBinding" contract="namespace.ICreateCompetition" />
      </service>
      <service name="namespace.ProblemStatement">
        <endpoint address="mex" binding="mexHttpBinding" contract="namespace.IProblemStatement"/>
      </service>
    </services>

当我在ProblemStatement.svc之外运行解决方案时,它甚至没有显示此服务
仅列出了CreateCompetition.svc

我注意到您正在使用Https作为工作服务。另一个是通过普通http配置元数据。也许你的基础设施不允许只使用http?我也尝试过改变它!!但它不起作用