Ошибка tcp error code 10061

  • Question

  • I hosted a wcf service application using windows services. When my client (ASP.NET) tries to call the service class hosted by the windows service, I get this error «TCP error code 10061: No connection could be made because the target machine actively refused it. «. Is there a fix for this? The same code works fine if I host it using a console application.

Answers

  • What port are you listening on? Is that port unblocked in your windows firewall?

All replies

  • What port are you listening on? Is that port unblocked in your windows firewall?

  • Yes, my firewall was blocking it. I got around it and it fixed the problem.

    • Proposed as answer by

      Friday, May 23, 2014 1:28 PM

  • Hi,

    Evn i am gettin the same error. Can u tell me wat is the fix.

  • I am getting the same error — but only when I change my return type to a cutom object. CLR types work fine — i.e. an IList of Strings, but not, say, MyResponseObj. I’m running the asp.net development server on port 1212, with a wsHttpBinding. Like I said, the problem seems to be with the return type which is marked up with the DataContract — DataMember tags, like my other custom objects that work fine as input objects. I am able to pass in an arbitrarily complex object of custom types no problem — but the server tanks with a custom return type.

    Any suggestion would be appreciated. Thanx — Ian

  • Brian

    I’ve configured trace in the web.config file as per the article, but no output or log file is generated. Do I need to create a trace object in my test code (NUnit) to explicitly start the trace segment?

    Or should the web.config entry be sufficient?

    Thanks,

    Ian

  • Kenny,

    I’ve unblocked the port on the firewall and still unable to connect.

    What was the fix?

  • For problem returning custom objects, turns out my IList<T> member variable, since it could be nullable, required this in the data contract: [DataMember(EmitDefaultValue = false)]
    That is what was causing the service to refuse the connection. Now all is well again.  A newbie error no doubt, but I never even heard of WCF before I started at my new company.  =o)

    • Proposed as answer by
      JeffKite
      Wednesday, August 14, 2013 6:32 PM

  • What port are you using? What binding is this? Can you connect to the port using IE (assuming you have an HTTP GET metadata enabled)?

  • Hi ,

    I am getting this error if I host it using a console application. it works fine if client is asp.net. Is there a fix for this?

    -ravi

  • try to remove and add service refrences again…it will help you to connect wcf…

  • Hi JothiMurugan,

    I am also getting same error when I host with the windows service.

    Same application when hosted in Console application, works fine.

    Can you please help me with the fix.

    Thanks in advance.

    Sakthi

  • hi
    i don’t know it will helpfull to u or not but u should try it
    first u click on  host  project and  click on Start new instance
    then u should run windows application

  • I have configured Tracing and I see my trace files just fine, the prblem is I don’t see an Error icon. 

    I’m looking through all the activities in the trace viewer and the one for my service operation has To and from transport messages, I can see the start for the activity but there is nothing indicating an error and I setup it up for  switchValue=»Error,ActivityTracing». 

    ??


    Santiago Perez

  • Hi,
    I am trying to write a WCF service with transport level security and basicHTTP binding. I am using a custom Membership provider to authenticate a client call to the service by authenticating the User ID and password passed to the service. I believe that WCF does not allow UserID/Password auth without having SSL certificate installed because the UserID/password are sent as clear text. I am currently in development and I tried installing the test certificate (X.509) on my dev machine running the service but w/o any success.
    My service web.config looks like this

    <

    system.serviceModel>

    <

    services>

    <

    service behaviorConfiguration=«LCCService.rbagLCWS_ServiceBehavior«

    name=«LCCService.rbagLCWS_Service«>

    <

    endpoint address=«»

    binding=«basicHttpBinding«

    bindingConfiguration=«LCCService.rbagLCWS_ServiceBinding«

    contract=«LCCService.IrbagLCWS_service«>

    </

    endpoint>

    <

    endpoint address=«mex«

    binding=«mexHttpBinding«

    contract=«IMetadataExchange« />

    </

    service>

    </

    services>

    <

    behaviors>

    <

    serviceBehaviors>

    <

    behavior name=«LCCService.rbagLCWS_ServiceBehavior«>

    <

    serviceCredentials>

    <

    userNameAuthentication userNamePasswordValidationMode=«MembershipProvider« membershipProviderName=«PasswordProvider«/>

    </

    serviceCredentials>

    <

    serviceMetadata httpGetEnabled=«true« />

    <

    serviceDebug includeExceptionDetailInFaults=«true« />

    </

    behavior>

    </

    serviceBehaviors>

    </

    behaviors>

    <

    bindings>

    <

    basicHttpBinding>

    <

    binding name=«LCCService.rbagLCWS_ServiceBinding«>

    <

    security mode=«Transport«>

    <

    transport clientCredentialType=«Basic«/>

    </

    security>

    </

    binding>

    </

    basicHttpBinding>

    </

    bindings>

    </

    system.serviceModel>

    When I try to call the service using the client w/o having the test certification installed, I get the following error:
    Could not connect to https://XYZ.com/rrxainet/LCCWCFService/rbagLCWS_service.svc. TCP error code 10061: No connection could be made because the target machine actively refused it XXX.XXX.XX.XXX:443.

    I have spent almost 2 days trying to figure out the solution and how to successfully install the test certificate to get it working but to no avail.

    Please can someone help. I really appreciate it!!!

  • hi guys,

    i am new to dot net. when i am using the folling program for connecting the particuler port it is giving the error.

    int

    timout = Convert.ToInt32(txttimeout.Text);

    int port = 5000;

    IPAddress localAddr = IPAddress.Parse(«127.0.0.1»);

    IPEndPoint remoteEndPoint = new IPEndPoint(localAddr, port);

    TcpClient NetworkClient = TimeOutSocket.Connect(remoteEndPoint, timout);

    NetworkStream networkstream = NetworkClient.GetStream();

    StreamReader streamReader = new StreamReader(networkstream);

    string line = streamReader.ReadToEnd(); //streamReader.ReadLine();

  • I got the same message after adding the registry value  «KeepAliveTime» with value 300000 in the window registry under HKEY_LOCAL_MACHINESystemCurrentControlSetServicesTcpipParameters.

    When I removed the window registry «KeepAliveTime», it resumed normal.

    Is there any settings I have to check ?

  • Hi All,

     I am new to WCF. I have created a WCF Service and hosted it in Windows Service. I have got a below Error when tring to create Client Proxy for the service.

    Error Message:

    «There was an error downloading ‘http://localhost:8051/Service1/’.
    Unable to connect to the remote server
    No connection could be made because the target machine actively refused it 127.0.0.1:8051
    Metadata contains a reference that cannot be resolved: ‘http://localhost:8051/Service1/’.
    Could not connect to http://localhost:8051/Service1/. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8051.

    Unable to connect to the remote server
    No connection could be made because the target machine actively refused it 127.0.0.1:8051
    If the service is defined in the current solution, try building the solution and adding the service reference again.»

    I have seen some posts related to Issue like unblocking the port in Firewall. I have unblocked all ports from Firewall, Still the Issue raising while create Client Proxy. Some one can help me on this Problem. I have Pasted my configuration file below.

    <system.serviceModel>
        <services>
          <service name=»WcfService1.Service1″ behaviorConfiguration=»WcfService1.Service1Behavior»>
            <!— Service Endpoints —>
            <endpoint address=»» binding=»wsHttpBinding» contract=»WcfService1.IService1″>
            </endpoint>
            <!—<endpoint address=»» binding=»netTcpBinding» contract=»WcfService1.IService1″></endpoint>—>
            <!—<endpoint address=»mextcp» binding=»mexTcpBinding» contract=»IMetadataExchange»/>—>
            <endpoint address=»mex» binding=»mexHttpBinding» contract=»IMetadataExchange»/>
            <host>
              <baseAddresses>
                <add baseAddress = «http://localhost:8051/Service1/» />
              </baseAddresses>
            </host>
          </service>
        </services>
        <behaviors>
          <serviceBehaviors>
            <behavior name=»WcfService1.Service1Behavior»>
              <!— To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment —>
              <serviceMetadata httpGetEnabled=»true»/>
              <!— To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information —>
              <serviceDebug includeExceptionDetailInFaults=»false»/>
            </behavior>
          </serviceBehaviors>
        </behaviors>
      </system.serviceModel>

    Please reply me to solve this problem.

  • I started getting this problem in VS 2008 IDE when I’m testing my web services.  Not a firewall issue.  Anyone find a positive solution to this??

    My Web Service test web application used to work fine a few months ago — now when I test it I get this error?  So I’m guessing some OS update has broken VS 2008 IDE for web services??

    Rob

  • Solved the problem for my case (appears to a Project’s Web Service reference issue):

    In VS 2008 IDE

    In your actual Web Services Project (with the ASMX source) — My Project | Web | Use Visual Studio Development Server | Auto-assign Port.

    a. If this is hard coded to a specific port you’ll need to verify the calling Project’s Web Service references match the same port and reference.

    b. Open your calling project — My Project | References — remove your Web Service references (Type = Service) — be sure to note the ReferenceName you used.  Now Add Service Reference back again — Discover Services in Solution, select the service
    and be sure to re-enter the same ReferenceName you used originally.

    If your Web Service project is configured differently or you reference external web services, then it might just be a case of removing and re-adding the web service back being sure to use the same ReferenceName so you project references stay intact.

    Rob.

    • Proposed as answer by
      Rob Ainscough
      Monday, August 2, 2010 10:23 PM

  • Hi I'm new to WCF.. I'm trying to invoke free web service
    

    http://www.mindreef.net/svc/hashservice/servicesHashClassSoap?wsdl....

    So i have created a client but it gives me an exception..Please help me

    Could not connect to http://localhost:8050/hashservice/services/HashClassSoap.
    
    
    TCP error code 10061: No connection could be made because the target machine 
    
    
    actively refused it 127.0.0.1:8050. 
    
    Server stack trace: 
     at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream()
     at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout)
     at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.
    
    
    HttpChannelRequest.SendRequest(Message message, TimeSpan timeout)
     at System.ServiceModel.Channels.RequestChannel.Request(Message message,
    
    
     TimeSpan timeout)
     at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message,
    
    
     TimeSpan timeout)
     at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean 
    
    
    oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan
    
    
     timeout)
     at System.ServiceModel.Channels.ServiceChannel.Call(String action,
    
    
     Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
     at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(
    
    
    IMethodCallMessage methodCall, ProxyOperationRuntime operation)
     at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    
    Exception rethrown at [0]: 
     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,
    
    
     IMessage retMsg)
     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,
    
    
     Int32 type)
     at HashClassSoap.CheckHash(CheckHashRequest request)
     at HashClassSoapClient.HashClassSoap.CheckHash(CheckHashRequest request)
    
    
    
    

  • you have added your wcf reference by selecting wcf project node. to resolve it select your test project node and add wcf reference. i hope it will work.

  • you have added your wcf reference by selecting wcf project node. to resolve it select your test project node and add wcf reference. i hope it will work.

  • Yeah! First time I ever fixed ANYTHING! Error went away when changed properties of project to use IIS instead of local directory.  Set the project to use IIS, click the button to create a virtual directory and…c’est voila!.  Good luck.

  • TrollSpouse, I seem to have this problem, but I don’t understand the solution you found. Could you be more specific where in properties you configured  to use IIS instead of local directory? Thanks.

  • Make sure that «Net.Tcp Listener» is running go to  ControlPanel/Administrative Tools/Services
    also «Net.Tcp Port Sharing»  Service.

    • Proposed as answer by
      M.El-Baz
      Saturday, October 22, 2016 5:57 PM

  • My Net.tcp listener shows as starting, however starts… it shows the net.tcp Port Sharing as started, as well as the Windows Process Activation Service as started… i get the 10061 error as well… any idea how I can fix this?  would a service admin
    logon do it versus Local System/Service?

  • did you find the solution I have the same problem «TCP error code 10061: No connection could be made because the target machine actively refused it.

    when the service and application on the same PC its working fine but when I deployed the client application on another pc, i got the above error.

  • I’m quite interested in this as well, as I’ve got the same issue. I had my WCF service, that uses TCP for the transport protocol, on a Windows 2003 R2 Server. We’re writing a WPF application. It works fine for me, but no other user can run it. So in an
    effort to try and figure out what’s wrong I am now running the WCF service on my machine (a Windows 7 Ultimate machine). I’ve put the WCF service into IIS. I made sure the Windows Firewall allows for the port I want to use (9000). But I started getting these,
    «No connection could be made because the target machine actively refused it» and then it gives my machine’s IP address. I saw back in 2011 that Ivendur suggested making sure that Net.Tcp Listener Adapter and Net.Tcp Port Sharing Service services both be running.
    They weren’t on my machine, but they are now, and that didn’t resolve the issue, I’m still getting that actively refused error message.


    Rod

  • I am receiving the same error when i  try to connect 2 clients to the same server.

    I make myself clear…

    i created a lan chat program that works just fine with 1 server form who listens (I used TPCListener) on 8080, and 1 client form that connects to it

    but if i try to open another client form and connect to the same server form at 8080 i get the error…

    i believed that, since the 2 clients use a different port to connect to localost:8080 the socket should not give an error…

    I don’t know how to solve this!


    +++ Alex +++

  • VMWARE Virtual network can cause such a problem (happened to me) — ‘Restore Defaults’ is the solution!


    Di-ma-N

  • For mine, I had to go into my router settings and use port forwarding.

  • It can be that if your server where AGPM client is started was an AGPM server before, that still these settings are used and therefore point to a wrong server. Just delete all entries of HKEY_LOCAL_MACHINESOFTWAREMicrosoftAgpm and below only enter the
    two following strings:

    DefaultArchive = AGPMServerName.company.com:4600
    InstallDirClient = C:Program FilesMicrosoftAGPMClient

    Note that «AGPMServerName.company.com» is the FQDN-name of the AGPM server. If you have another port than 4600 and/or another installation directory of your client, please adapt it (hust check before you delete anything).

  • I got similar error, I had to reboot the web server.

    Could not connect to net.tcp://testwe01/Services/Jse.EquitySystem.DataService/PricesDataService.svc

    The connection attempt lasted for a time span of 00:00:01.0312568. TCP error code 10061: No connection could be made because the target machine actively refused it xx.xx.xx.xxx:808.

  • I hosted a wcf service application using windows services. When my client (ASP.NET) tries to call the service class hosted by the windows service, I get this error «TCP error code 10061: No connection could be made because the target machine actively
    refused it. «. Is there a fix for this? The same code works fine if I host it using a console application.

    https://hipmusic.co/

    • Edited by
      HezekiahNig
      Thursday, July 25, 2019 11:20 PM

Referring to a video tutorial about WCF service in windows service,i have created a sample WCF service and hosted that Service with netTcpBinding in Windows Service.(since i want this WCF service to run as windows service)

Its a simple service which adds/deletes/loads employee details, and is consumed by a windows forms application.that worked fine,when i build the whole solution(consisting wcf service + windows service + client app), however when i wanted to verify that my client isn’t directly referring to the project in the solution, so i excluded both the services(wcf+windows) from my solution. it stopped working throwing an error, reading:

Could not connect to net.tcp://localhost:8010/EmployeeService.Service1/. The connection attempt lasted for a time span of 00:00:02.0180000. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:8010.

Important point that might help to answer:

  • WCF service and windows service have identical app.config
  • Windows service is running as a service

this is my client app.config

<?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <system.serviceModel>
            <bindings>
                <netTcpBinding>
                    <binding name="netTcpEndPoint" closeTimeout="00:01:00" openTimeout="00:01:00"
                        receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false"
                        transferMode="Buffered" transactionProtocol="OleTransactions"
                        hostNameComparisonMode="StrongWildcard" listenBacklog="10"
                        maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
                        maxReceivedMessageSize="65536">
                        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                        <reliableSession ordered="true" inactivityTimeout="00:10:00"
                            enabled="false" />
                        <security mode="Transport">
                          <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
                            <message clientCredentialType="Windows" />
                        </security>
                    </binding>
                </netTcpBinding>
            </bindings>
            <client>
                <endpoint address="net.tcp://localhost:8010/EmployeeService.Service1/"
                    binding="netTcpBinding" bindingConfiguration="netTcpEndPoint"
                    contract="Service1.IService1" name="netTcpEndPoint">
                    <identity>
                        <userPrincipalName value="user@company.com" />
                    </identity>
                </endpoint>
            </client>
        </system.serviceModel>
    </configuration>

any help would be greatly appreciated….

  • Remove From My Forums
  • Вопрос

  • We are using windows server 2012. In the following error showed when running application. this application depend on TCP port 808 so I have included it windows firewall inbound role also… so pls suggest me…

            «»Could not connect to net.tcp://192.168.1.4/FACTERPNGWebServer/Alert.svc. The connection attempt lasted for a time span of 00:00:00.9990571. TCP error code 10061: No connection could be made because the
    target machine actively refused it 192.168.1.4:808. «»»

    • Перемещено

      19 августа 2014 г. 13:03
      More Appropriate

Ответы

  • Hi

    Read the below article

    They suggest running netstat -anb as soon as the application is executed to  ensure the correct ports are opened.

    http://stackoverflow.com/questions/9695224/no-connection-could-be-made-because-the-target-machine-actively-refused-it-127-0

    Quote : «Actively refused it» means that the host sent a reset instead of an ack when you tried to connect.

    hope this helps resolve your issue as this resolved it for these users.

    • Помечено в качестве ответа
      Steven_Lee0510
      1 сентября 2014 г. 2:28

After all the hassle with ADFS and the WAP servers that had been on too long. I got this error message on top after a restart of the ADFS server.

“TCP error code 10061: No connection could be made because the target machine actively refused it”

This error message also took a while before I had found it out.

I encountered this error message because I used a PowerShell cmdlet for ADFS. This does not mean that this cannot solve the problem at other times.

No idea if it only occurs on Windows Servers, but my solution is for a Windows Device only.


Lets fix “The connection attempt lasted for a time span“.

The message comes up because your firewall is blocking something. As you can see in the error message: “net.tcp://localhost:1500/policy”. Your connection tries to go over port 1500, but the server blocks this on purpose: “No connection could be made because the target machine actively refused it”.

In my situation I turned off the firewall to see if this was my issue. In a production environment you can do that as well temporarily, but make sure to turn it on again.

To turn off the Windows Firewall with PowerShell use this cmdlet:

Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False

To turn off the Windows Firewall temporarily in the GUI:

  1. Go to start and search for Control Panel.
  2. Search for Firewall.
  3. Open Turn Windows Defender Firewall on or off in the left menu.
  4. Select Turn off Windows Defender Firewall (not recommended).
TCP error code 10061: No connection could be made because the target machine actively refused it
TCP error code 10061: No connection could be made because the target machine actively refused it.

Try to make a connection again.


Summary

Do you have a different solution, or do you have feedback, or other ideas? Let me know in the comments.


A little extra

This post contains PowerShell. Would you like to learn the basics better? I have created a new website to learn basic PowerShell in an ’emulator’ environment.
Click here to go learn Basic PowerShell.


The complete error message

should someone Googling on another part of the error message:

"get-adfsendpoint : Could not connect to net.tcp://localhost:1500/policy. The connection attempt lasted for a time span

of 00:00:02.0781669. TCP error code 10061: No connection could be made because the target machine actively refused it

[::1]:1500.

At line:1 char:1

+ get-adfsendpoint

+ ~~~~~~~~~~~~~~~~

+ CategoryInfo          : OpenError: (:) [Get-AdfsEndpoint], EndpointNotFoundException

+ FullyQualifiedErrorId : Could not connect to net.tcp://localhost:1500/policy. The connection attempt lasted for

a time span of 00:00:02.0781669. TCP error code 10061: No connection could be made because the target machine acti

vely refused it [::1]:1500. ,Microsoft.IdentityServer.Management.Commands.GetEndpointCommand"

Published by

Bas Wijdenes

My name is Bas Wijdenes and I work as a PowerShell DevOps Engineer. In my spare time I write about interesting stuff that I encounter during my work.
View all posts by Bas Wijdenes

In a 2011 to 2013 upgraded environment, I’m getting the following error when updating preview on certain pages (and then performing any actions in the CME. TcmServiceHost also stops.

Could not connect to net.tcp://localhost:2660/CoreService/2012/netTcp. The connection attempt lasted for a time span of 00:00:02. TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:2660.

Update 1: Browser console shows as issue with GetPreviewToken.

POST
http://cms.electridion.com/WebUI/Models/SiteEdit/Services/Services.svc/GetPreviewToken
500 (Internal Server Error)

coreresource_v7.0.0.568.5_.js?sav=1&cnt=core:18
Tridion.Sys.Net.WebRequest.execute
coreresource_v7.0.0.568.5_.js?sav=1&cnt=core:18
$communicator.invokeAggregated
coreresource_v7.0.0.568.5_.js?sav=1&cnt=core:196

Restarting the service fixes the issue until the next preview.

I understand we configure NetTcp, which the CME uses, in %TRIDION_HOME%TcmServiceHost.exe.config which has (updated to show the SDL Tridion 2013 endpoint):

<services>
  <service behaviorConfiguration="Tridion.ContentManager.ServiceHost.WindowsServiceHost.CoreServiceBehavior" name="Tridion.ContentManager.CoreService.CoreService2011">
    <endpoint name="netTcp" address="netTcp" binding="netTcpBinding" bindingConfiguration="CoreService_netTcpBinding" bindingNamespace="http://www.sdltridion.com/ContentManager/CoreService/2011" contract="Tridion.ContentManager.CoreService.ISessionAwareCoreService2011"/>
    <endpoint name="streamDownload_netTcp" address="streamDownload_netTcp" binding="netTcpBinding" bindingConfiguration="StreamDownload_netTcpBinding" bindingNamespace="http://www.sdltridion.com/ContentManager/CoreService/2011" contract="Tridion.ContentManager.CoreService.IStreamDownload2011"/>
    <endpoint name="streamUpload_netTcp" address="streamUpload_netTcp" binding="netTcpBinding" bindingConfiguration="StreamUpload_netTcpBinding" bindingNamespace="http://www.sdltridion.com/ContentManager/CoreService/2011" contract="Tridion.ContentManager.CoreService.IStreamUpload2011"/>
    <endpoint name="mex" address="mex" binding="mexTcpBinding" bindingConfiguration="" contract="IMetadataExchange"/>
    <host>
      <baseAddresses>
        <add baseAddress="net.tcp://localhost:2660/CoreService/2011"/>
      </baseAddresses>
    </host>
  </service>
  <service behaviorConfiguration="Tridion.ContentManager.ServiceHost.WindowsServiceHost.CoreServiceBehavior" name="Tridion.ContentManager.CoreService.CoreService2012">
    <endpoint name="netTcp" address="netTcp" binding="netTcpBinding" bindingConfiguration="CoreService_netTcpBinding" bindingNamespace="http://www.sdltridion.com/ContentManager/CoreService/2012" contract="Tridion.ContentManager.CoreService.ISessionAwareCoreService2012"/>
    <endpoint name="streamDownload_netTcp" address="streamDownload_netTcp" binding="netTcpBinding" bindingConfiguration="StreamDownload_netTcpBinding" bindingNamespace="http://www.sdltridion.com/ContentManager/CoreService/2012" contract="Tridion.ContentManager.CoreService.IStreamDownload2012"/>
    <endpoint name="streamUpload_netTcp" address="streamUpload_netTcp" binding="netTcpBinding" bindingConfiguration="StreamUpload_netTcpBinding" bindingNamespace="http://www.sdltridion.com/ContentManager/CoreService/2012" contract="Tridion.ContentManager.CoreService.IStreamUpload2012"/>
    <endpoint name="batch_netTcp" address="batch_netTcp" binding="netTcpBinding" bindingConfiguration="CoreService_netTcpBinding" bindingNamespace="http://www.sdltridion.com/ContentManager/CoreService/2012" contract="Tridion.ContentManager.CoreService.ICoreServiceBatch2012"/>
    <!-- We use TcmServiceHost.exe as source for WSDL-extraction for the T.CM.CoreService.Client. We need an endpoint for the ICoreService2012 contract, otherwise it's not included in the WSDL/proxy. -->
    <endpoint name="dummy" address="dummy" binding="netTcpBinding" bindingConfiguration="CoreService_netTcpBinding" bindingNamespace="http://www.sdltridion.com/ContentManager/CoreService/2012" contract="Tridion.ContentManager.CoreService.ICoreService2012"/>
    <endpoint name="mex" address="mex" binding="mexTcpBinding" bindingConfiguration="" contract="IMetadataExchange"/>
    <!--
    <endpoint name="netFederationTcp" address="netFederationTcp" binding="customBinding" bindingConfiguration="CoreService_netFederationTcpBinding" bindingNamespace="http://www.sdltridion.com/ContentManager/CoreService/2012" contract="Tridion.ContentManager.CoreService.ISessionAwareCoreService2012" />
    <endpoint name="batch_netFederationTcp" address="batch_netFederationTcp" binding="customBinding" bindingConfiguration="CoreService_netFederationTcpBinding" bindingNamespace="http://www.sdltridion.com/ContentManager/CoreService/2012" contract="Tridion.ContentManager.CoreService.ICoreServiceBatch2012" />
    -->
    <host>
      <baseAddresses>
        <add baseAddress="net.tcp://localhost:2660/CoreService/2012"/>
      </baseAddresses>
    </host>
  </service>
  <service behaviorConfiguration="Tridion.ContentManager.ServiceHost.WindowsServiceHost.CoreServiceBehavior" name="Tridion.ContentManager.Publishing.PreviewService.FastTrackPublishingService">
    <endpoint name="netTcp" address="netTcp" binding="netTcpBinding" bindingConfiguration="CoreService_netTcpBinding" bindingNamespace="http://www.sdltridion.com/SiteEdit/FastTrackPublishing" contract="Tridion.ContentManager.Publishing.PreviewService.IFastTrackPublishingService"/>
    <host>
      <baseAddresses>
        <add baseAddress="net.tcp://localhost:2660/FastTrackPublishingService"/>
      </baseAddresses>
    </host>
  </service>

IIS has the CMS with bindings set to http for host cms.domainname.com on Port 80.

Update and here’s the partial browser error.

System.ServiceModel.EndpointNotFoundException: Could not connect to
net.tcp://localhost:2660/CoreService/2012/netTcp. The connection
attempt lasted for a time span of 00:00:02.0007991. TCP error code
10061: No connection could be made because the target machine actively
refused it 127.0.0.1:2660. —> System.Net.Sockets.SocketException: No
connection could be made because the target machine actively refused
it 127.0.0.1:2660

Questions:

  1. Do I need to set anything for the port 2660 (firewall, IIS, etc?) for the CME itself running on the same machine?
  2. Does the net.tcp://localhost need to match the CME url?
  3. Should TcmServiceHost.exe continue to run (it’s set to «Automatic» so I’m not sure if that means stopping is a problem) or thoughts on what can stop it?

In terms of error logs, I do see Audience Manager complaining about the same issues but nothing much in Staging’s core log. Where else should I check?

Update 2: I think a bad template caused the service to stop—it called RenderComponentPresentation on itself. I could see the template stall in Template Builder and Windows created fairly large crash reports (folders starting with AppCrash_TcmTemplateDebug_) in C:ProgramDataMicrosoftWindowsWERReportQueue.

Понравилась статья? Поделить с друзьями:
  • Ошибка tcl на стиральной машине lg что это значит
  • Ошибка tcl на стиральной машине lg что делать
  • Ошибка tcl в машинке lg стиральной машине
  • Ошибка taskhostw exe при выключении компьютера
  • Ошибка taskeng exe windows 7