0

我正在关注这个链接来创建我的 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>

有人可以建议我哪里出错了吗?

4

0 回答 0