托管WCF服务

时间:2012-11-08 09:23:13

标签: wcf

我正在关注THIS链接以创建我的wcf服务并通过窗口服务托管它工作正常但是当我将我的命名空间从“Microsoft.ServiceModel.Samples”更改为“EE.ServiceProcess.ABC”并且在app.config中相应更改我的窗口服务无法正常启动 我的 App.config中

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
      <system.serviceModel>
        <services>
          <service name="EE.ServiceProcess.ABC.CalculatorService"
                   behaviorConfiguration="CalculatorServiceBehavior">
            <host>
              <baseAddresses>
                <add baseAddress="http://localhost:8000/EEServiceProcessABCservice/service"/>
              </baseAddresses>
            </host>
            <!-- this endpoint is exposed at the base address provided by host: http://localhost:8000/EEServiceProcessABCservice/service  -->
            <endpoint address=""
                      binding="wsHttpBinding"
                      contract=" EE.ServiceProcess.ABC.ICalculator" />
            <!-- the mex endpoint is explosed at http://localhost:8000/EEServiceProcessABCservice/service/mex -->
            <endpoint address="mex"
                      binding="mexHttpBinding"
                      contract="IMetadataExchange" />
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name="CalculatorServiceBehavior">
              <serviceMetadata httpGetEnabled="true"/>
              <serviceDebug includeExceptionDetailInFaults="False"/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
      </system.serviceModel>
   </configuration>

任何人都可以建议我哪里出错了吗?

0 个答案:

没有答案