Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 850215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:13:44+00:00 2026-05-15T07:13:44+00:00

I have an application I wrote which has been running well for 4 years.

  • 0

I have an application I wrote which has been running well for 4 years. Yesterday they moved all their servers around and installed about 60 pending Windows updates, and now it is broken. The application makes use of remoting to update some information on another server (10.0.5.230), but when I try to create my remote object, I get the following exception:
Error message: No connection could be made because the target machine actively refused it 127.0.0.1:9091 http://img692.imageshack.us/img692/8104/screenshot1ay.png

Note that it is trying to connect to 127.0.0.1, not the proper server. The server (10.0.5.230) is listening on port 9091 as it should. This same error is happening on all three terminal servers where this application is installed.

Here is the code which registers the remoted object:

public static void RegisterClient()
{
  string lServer;

  RegistryKey lKey = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Shoreline Teleworks\\ShoreWare Client");
  if (lKey == null)
    throw new InvalidOperationException("Could not find Shoretel Call Manager");

  object lVal = lKey.GetValue("Server");
  if (lVal == null)
    throw new InvalidOperationException("Shoretel Call Manager did not specify a server name");

  lServer = lVal.ToString();

  IDictionary props = new Hashtable();
  props["port"] = 0;
  string s = System.Guid.NewGuid().ToString();
  props["name"] = s;
  ChannelServices.RegisterChannel(new TcpClientChannel(props, null), false);
  RemotingConfiguration.RegisterActivatedClientType(typeof(UpdateClient),
    "tcp://" + lServer + ":" + S_REMOTING_PORT + "/");
  RemotingConfiguration.RegisterActivatedClientType(typeof(Playback), 
    "tcp://" + lServer + ":" + S_REMOTING_PORT + "/");
}

Here is the code which calls the remoted object:

UpdateClient lUpdater = new UpdateClient(Settings.CurrentSettings.Extension.ToString());
lUpdater.SetAgentState(false);

I have verified that the following URI is passed to RegisterActivatedClientType: “tcp://10.0.5.230:9091/”
Why does this application try to connect to the wrong server?

Additional information:

The client does connect to the server: It sends a ConstructionCall message to the server and receives back a ConstructionResponse. This ConstructionResponse contains an ObjRef which references the URI tcp://127.0.0.1:9091. I can’t figure out where this URI is being assigned. Any idea why the server would return this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T07:13:44+00:00Added an answer on May 15, 2026 at 7:13 am

    I have found the problem: The remoting server had two network cards enabled, one of them unplugged. Disabling the unused network card resolved the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client that is running a custom VB 6 application they wrote
We have a web application which has been developed over the past 7 months.
I have a java application which has a GUI in both English and French,
I have a C# application and a C DLL both of which I wrote
I have an old ClickOnce program, which has been replaced by a new one
I have written a application which runs in the background. I want to write
I'm working on an application so i have write an dll which contain a
I have a multi-threaded application in C# which tries to write to a TextBox
I need to write a standalone Java application which will have a embedded HTTP
I'm VERY new to Linq. I have an application I wrote that is in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.