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>

转载请说明出处

posted @ 2011-12-27 19:24  Cutting.pht  阅读(535)  评论(0编辑  收藏