托管WCF服务

托管WCF服务,wcf,Wcf,我正在按照链接创建我的wcf服务并通过窗口服务托管,它工作正常,但当我将名称空间从“Microsoft.ServiceModel.Samples”更改为“EE.ServiceProcess.ABC”并在app.config中进行相应更改时,我的窗口服务无法正常启动 我的 App.config <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceMod

我正在按照链接创建我的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>


有人能告诉我哪里出了问题吗?

您的CLR名称空间和合同应该匹配。在Confing文件中提供相同的CLR命名空间。错误消息是什么?放置
try catch
阻止并截获消息。“我的窗口服务无法正常启动”-请显示您遇到的任何异常。您是否更新了此行[ServiceContract(命名空间=”