Groups | Blog | Home
all groups > dotnet remoting > july 2007 >

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


shivkumar2004 NO[at]SPAM gmail.com
7/22/2007 11:35:21 AM
Hi!,

I have developed a chat system using vb.net in vs 2005. Solution
contains 3 projects, client, interface and server. My problem is,
server.exe which resides in C:\Inetpub\wwwroot, does not run
automatimatically. when I start client application it raises error
"Unable to connect to the remote server. No connection could be made
because the target machine actively refused it".


How to make server.exe run automatically whenever any client
application starts?

Please help me out.

Thanks,
Shivkumar
Sohail Iqbal
7/23/2007 12:20:58 AM
Shivkumar,

if u have developed ur server as stand alone EXE , u should try doing in as
Windows Service, this way it will start automatically.
if u have the server as DLL component and trying to host in IIS, check ur
configurations if u have configured it on localhost.

the error message u mentioned occurs when ur server is listening on
localhost IP *only* and client try to connet a host IP from different
macihe.

hope this helps

Sohail Iqbal


[quoted text, click to view]

AddThis Social Bookmark Button