C# WCF svc已从iis注销

C# WCF svc已从iis注销,c#,wcf,iis-7.5,C#,Wcf,Iis 7.5,当我尝试在iis 7.5中打开.svc文件时,我得到了一个404,我的system.serviceModel来自web配置,如下所示: <system.serviceModel> <bindings> <wsHttpBinding> <binding name="MyBinding"> <security mode="Transport"> <tra

当我尝试在iis 7.5中打开.svc文件时,我得到了一个404,我的system.serviceModel来自web配置,如下所示:

<system.serviceModel>

    <bindings>
      <wsHttpBinding>
        <binding name="MyBinding">
          <security mode="Transport">
            <transport clientCredentialType="Windows" />
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>

    <behaviors>
      <serviceBehaviors>
        <behavior name="ServiceBehavior">
          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
          <serviceMetadata httpsGetEnabled="true" />
          <!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>

    <services>
      <service behaviorConfiguration="ServiceBehavior" name="Gsfa.Gsfbs.Integration.Services.MemberIntegrationService">
        <endpoint address="https://gsfdevmatthewc/MemberIntegrationService.svc" binding="wsHttpBinding" bindingConfiguration="MyBinding" contract="Gsfa.Gsfbs.Integration.Contracts.IMemberIntegrationService" />
      </service>
    </services>


  </system.serviceModel>

好的,我解决了,我需要在iis中重新注册所有内容

  • 以管理员身份打开cmd
  • 键入以下内容:

    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet\u regiis.exe-i

  • 你的任务完成了


  • 你用的是什么地址。未使用您在终结点中指定的地址。你的托管站点的地址很重要。好的,我做了更多的挖掘,发现.svc已经从iis中的处理程序映射中退出。