Discussion:
remoting mysteriously no longer works
(too old to reply)
John A Grandy
2009-10-05 18:41:51 UTC
Permalink
XP Pro SP3

Visual Studio 2005 SP2

This .NET 2.0 app involves running a WinForms app ( the client ) which makes
remoting calls to another Windows Application ( the server ) which listens
on a specific port (8075).

( Note that in prod, the server is run as a Windows Service. )

I work in debug mode : first I debug start the server, then I debug-start
the client.

The server class I wish to make a remote call to is defined as

MyClass : MarshalByRefObject

I create remote objects as follows :

MyClass remoteMyClass = MyClass.GetRemoteObject( "localhost", 8075 );


My remote calls have been working flawlessly for 18 months.

Now, today, it stops working.

On remote object creation , I receive the error :

Invalid URI: The hostname could not be parsed.


What could be going on
John A Grandy
2009-10-05 18:48:30 UTC
Permalink
Sorry, left out a few details :



public static MyClass MyClass.GetRemoteObject( string server, int port )
{
SmsRemotingChannelManager.OpenSmsTcpRemotingChannel(
ConfigurationAccessor.EnableRemotingEvents );

MyClass remoteObject = (MyClass)Activator.GetObject( typeof( MyClass),
"tcp://" + server + ":" + port + "/MyClass.rem" );

return remoteObject;
}
Post by John A Grandy
XP Pro SP3
Visual Studio 2005 SP2
This .NET 2.0 app involves running a WinForms app ( the client ) which
makes remoting calls to another Windows Application ( the server ) which
listens on a specific port (8075).
( Note that in prod, the server is run as a Windows Service. )
I work in debug mode : first I debug start the server, then I debug-start
the client.
The server class I wish to make a remote call to is defined as
MyClass : MarshalByRefObject
MyClass remoteMyClass = MyClass.GetRemoteObject( "localhost", 8075 );
My remote calls have been working flawlessly for 18 months.
Now, today, it stops working.
Invalid URI: The hostname could not be parsed.
What could be going on
Loading...