Como hospedar um serviço WCF em um serviço gerenciado do Windows?

Eu tenho 3 projetos na minha solução.

Cliente de teste => para adicionar referência e acesso via tcp ipWcfServiceLibruary1 => para executar meus methotsWindowsService1 => para instalar e executar como serviço do Windows (Conta: Serviço de Rede, StartType: Automatic)

Eu usei todos os mesmos códigos na amostra msdn

http://msdn.microsoft.com/en-us/library/ff649818.aspx

Eu uso um serviço wcf que tem 2 methots.Eu quero usar este serviço wcf no serviço de windows gerenciado.Eu adicionei um serviço do windows para a minha solução e definir coisas de referências.

Eu uso essa referência de endereço no meu wcf - app.config:

net.tcp://localhost:2023/Service1

AGORA PROBLEMA É:

Eu sucesso para adicionar referência ao meu projeto de cliente de teste usando

net.tcp://localhost:2023/Service1:

Mas este endereço de referência não deve ser usado na instalação como serviço do windows !!! Quando eu instalá-lo como o serviço do windows, eu não consigo acessar este endereço, e eu tenho esse erro:No connection could be made because the target machine actively refused it

WcfServiceLibruary app.config:

<?xml version="1.0"?>
  <configuration>
    <system.web>
    <compilation debug="true"/>
  </system.web>
  <!-- When deploying the service library project, the content of the config file must be added to the host's 
  app.config file. System.Configuration does not support config files for libraries. -->
  <system.serviceModel>
    <services>
      <service name="WcfServiceLibrary1.Service1">
        <endpoint address="" binding="netTcpBinding" bindingConfiguration="" contract="WcfServiceLibrary1.IService1">
          <identity>
            <dns value="localhost"/>
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexTcpBinding" bindingConfiguration="" contract="IMetadataExchange"/>
        <host>
          <baseAddresses>
            <add baseAddress="net.tcp://localhost:2023/Service1"/>
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="">
          <serviceMetadata httpGetEnabled="false"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>

<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>

Meu WindowsService:

protected override void OnStart(string[] args)
{
    if (myServiceHost != null)
    {
        myServiceHost.Close();
    }
    myServiceHost = new ServiceHost(typeof(Service1));
    myServiceHost.Open();
 }

Tudo funciona bem quando eu começo no host do serviço visualstudio:

questionAnswers(1)

yourAnswerToTheQuestion