爱若晨风 发表于 2015-8-14 14:03:35

IIS中部署WCF,无法解析计算机名问题,,可以把中间那段改为“计算机名”改成IP

  http://webgameseed:7005/**.svc?wsdl
  ==>
  http://192.168.0.147:7005/**.svc?wsdl
  修改被注释的那两个地方就是了。
  


<system.serviceModel>
    <services>
       <service behaviorConfiguration="BGManager.Service1Behavior" name="***">
      <endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
          contract="***">
          <identity>
            <!--<dns value="192.168.0.147" />-->
            <dns value="webgameseed"/>
          </identity>
      </endpoint>
      <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
      <service behaviorConfiguration="BGManager.Service1Behavior" name="***">
      <endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
          contract="***">
          <identity>
            <!--<dns value="192.168.0.147" />-->
            <dns value="webgameseed"/>
          </identity>
      </endpoint>
      <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
         </services>
</system.serviceModel>  转载请说明出处
页: [1]
查看完整版本: IIS中部署WCF,无法解析计算机名问题,,可以把中间那段改为“计算机名”改成IP