发布我的WCF服务失败

时间:2013-08-08 22:39:15

标签: .net wcf iis publish

我的OutPut窗口是这样的:

  

------ Build build:Project:WcfService,Configuration:Debug Any CPU ------ WcfService - >   C:\ Users \用户扎伊德\下载\ WcfService \ WcfService \ WcfService \ BIN \ WcfService.dll   ------发布开始:项目:WcfService,配置:调试任何CPU ------连接到http:// someIP :xxxx ...无法创建   网站' http:// someIP :xxxx'。服务器意外关闭   连接。   ==========构建:1成功或最新,0失败,0跳过==========   ==========发布:0成功,1失败,0跳过==========

因为它在IIS服务器上完美运行。我在Web.config文件中的代码是:

    ![<?xml version="1.0"?>
<configuration>
  <system.serviceModel>
    <services>
      <service name="WcfService.Service1" behaviorConfiguration="serviceBehavior">
        <endpoint address="" binding="basicHttpBinding" contract="WcfService.IService1"/>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
        <host>
          <baseAddresses>
            <add baseAddress="http://14.200.162.57:6968/WcfService/Service1.svc"/>
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="serviceBehavior">
          <serviceMetadata httpGetEnabled="True"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
  <system.webServer>
    <directoryBrowse enabled="true"/>
  </system.webServer>
  <system.web>
    <compilation debug="true"/>
  </system.web>
</configuration>][1]

我的发布方法是:

  

FPSE

0 个答案:

没有答案