0

このリンクに従ってwcfサービスを作成し、ウィンドウ サービスを介してホスティングしていますが、正常に動作していますが、名前空間を "Microsoft.ServiceModel.Samples" から "EE.ServiceProcess.ABC" に変更し、それに応じて app.config を変更すると、myウィンドウサービスが適切に開始されない私の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