No connection could be made because the target machine actively refused it DC [ID Address] (K2 Blackpearl having issue authentication with Domain Controller)

KP 1 Reputation point
2021-11-13T13:30:15.463+00:00

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 11/13/2021 7:09:37 AM
Event time (UTC): 11/13/2021 1:09:37 PM
Event ID: 1c5e663e3c3046f0bed389afff97a7a5
Event sequence: 21
Event occurrence: 10
Event detail code: 0

Application information:
Application domain: /LM/W3SVC/2/ROOT/ViewFlow-1-132812810791625164
Trust level: Full
Application Virtual Path: /ViewFlow
Application Path: C:\Program Files (x86)\K2 blackpearl\Webservices\ViewFlow\
Machine name: DOMAIN

Process information:
Process ID: 5000
Process name: w3wp.exe
Account name: DOMAIN\k2WorkspaceAdmin

Exception information:
Exception type: SocketException
Exception message: No connection could be made because the target machine actively refused it 10.55.1.1:5555
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnectionBroker.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)
at SourceCode.Security.Claims.Web.Shared.ConnectionClass.GetPoolConnection(String credentialToken, Boolean asAppPool, Boolean& tokenApplied)
at SourceCode.Security.Claims.Web.Shared.ConnectionClass.Connect(BaseAPI baseAPI, Boolean asAppPool, Boolean validateLicense)
at SourceCode.Security.Claims.Web._trust.login.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Request information:
Request URL: http://DOMAIN/ViewFlow/_trust/login.aspx?ReturnUrl=/ViewFlow/&AspxAutoDetectCookieSupport=1
Request path: /ViewFlow/_trust/login.aspx
User host address: 10.1.0.92
User:
Is authenticated: False
Authentication Type:
Thread account name: DOMAIN\k2WorkspaceAdmin

Thread information:
Thread ID: 46
Thread account name: DOMAIN\k2WorkspaceAdmin
Is impersonating: False
Stack trace: at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)
at SourceCode.Hosting.Client.BaseAPI.SocketBaseAPIConnection.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnectionBroker.OnOpen(SCConnectionStringBuilder connectionStringBuilder)
at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Open(String connectionString)
at SourceCode.Security.Claims.Web.Shared.ConnectionClass.GetPoolConnection(String credentialToken, Boolean asAppPool, Boolean& tokenApplied)
at SourceCode.Security.Claims.Web.Shared.ConnectionClass.Connect(BaseAPI baseAPI, Boolean asAppPool, Boolean validateLicense)
at SourceCode.Security.Claims.Web._trust.login.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Custom event details:

Weird part about this issue is - I have 2 server - serverProd and serverDev, I can connect to that same AD or DC or IP Address using that serverDev but I am not able to do the same with serverProd. Plus I can also see and grant access to application from serverDEV to prod. But not reverse. So basically I have to make DEV running the PROD. Any help will be greatly appriciated!!

Internet Information Services
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Wu-MSFT 7,446 Reputation points Microsoft Vendor
    2021-11-14T03:15:32.95+00:00

    @KP

    I have 2 server - serverProd and serverDev, I can connect to that same AD or DC or IP Address using that serverDev but I am not able to do the same with serverProd. Plus I can also see and grant access to application from serverDEV to prod. But not reverse

    Is there any difference between these two servers?

    No connection could be made because the target machine actively refused it

    This error is a network-related error occurred while establishing a connection to the Server. It means that the error is occurring because there is no server listening at the hostname and port you assigned. It literally means that the machine exists but that it has no services listening on the specified port. generally, it happens that something is preventing a connection to the port or hostname. Either there is a firewall blocking the connection or the process that is hosting the service is not listening on that specific port. This may be because it is not running at all or because it is listening on a different port.

    You can try below solution:

    You might have a firewall rule in the way, or are trying to run it through a proxy without having the proxy up and running. The easiest way to check would be to disable your firewall or proxy and try again.

    Disable proxy at web.config file:

    <system.net>  
      <defaultProxy>  
        <proxy usesystemdefault="False"/>  
      </defaultProxy>  
    </system.net>  
    

    Also, check your .config files, mostly this error is caused by a wrong port number you assigned, or incorrect name of the PC (which should be localhost if you are testing everything in one PC).


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.