No connection could be made -
10-05-2007
, 07:13 AM
Dear All,
I have implemented the remoting sample from the ASP.NET quickstart but I am
getting the error:
"No connection could be made because the target machine actively refused it"
when the application tries to call the remote class method.
I am registering the class with:
TcpChannel chan = new TcpChannel(8085);
ChannelServices.RegisterChannel(chan, false);
RemotingConfiguration.RegisterWellKnownServiceType (
typeof(TestServer.TestClass),
"TestClassURI", WellKnownObjectMode.SingleCall);
and connecting to it with:
TestServer.TestClass test =
(TestServer.TestClass)Activator.GetObject(
typeof(TestServer.TestClass),
"tcp://localhost:8085/TestClassURI");
I have the firewall disabled and the server class is running on the local
machine anyway so any ideas as to why the connection fails?
Regards,
Andrew |