2011-07-11 26 views
1

我得到一个404当过我尝试打开一个.svc文件在IIS 7.5,从web配置我的system.serviceModel低于:WCF SVC未注册的从IIS

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

你用什么地址。您在端点中指定的地址未被使用。您的托管网站的地址很重要。 –

+0

好的,我已经做了一些更多的挖掘工作,它已经退出了iis中的Handler Mappings。 – Korich

回答

0

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

  1. 打开CMD管理员
  2. 键入以下内容:

    C:\ WINDOWS \ Microsoft.NET \ Framework64 \ v4.0.30319 \ ASPNET_REGIIS.EXE -i

  3. 你完成。