HighTechTalks DotNet Forums  

No connection could be made

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss No connection could be made in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Andrew Jarvis
 
Posts: n/a

Default 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



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.