WCF svc未从iis注册

本文关键字:注册 iis 未从 svc WCF | 更新日期: 2023-09-27 18:02:00

当我尝试在iis 7.5中打开.svc文件时,我得到404,我的系统。web配置中的serviceModel如下:

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

WCF svc未从iis注册

我解决了这个问题,我需要重新注册iis中的所有内容。

  1. 以管理员身份打开cmd
  2. 输入如下:

    Microsoft.NET

    C: ' Windows ' ' Framework64 ' v4.0.30319 ' aspnet_regiis.exe我

  3. 你做。