Additional information: No connection could be made because the target machine actively refu
I am currently getting this error when attempting to instantiate and remote object.
Currently, everything is located locally.
Here is a code snippet to further explain.
The highlighted code is where the error occurs.
Can anyone help?
Thanks
=========================================== namespace
{
publicclass ResumeClient
{
publicstaticvoid Main(string[] args)
{
ChannelServices.RegisterChannel(new TcpClientChannel());
ResumeLoader loader = (ResumeLoader)Activator.GetObject(typeof(ResumeLoader), "tcp://localhost:9932/ResumeLoader");
if(loader==null)
{ Console.WriteLine("Unable to get remote referance"); }
else
{
Resume resume = loader.GetResumeByUserID(1);
Console.WriteLine("ResumeID:"+ resume.ResumeID);
Console.WriteLine("UserID:"+ resume.UserID);
Console.WriteLine("Title:"+ resume.Title);
Console.WriteLine("Body:"+ resume.Body);
}
Console.ReadLine();
//Keep the window from closing before we can read the result.}
//END OF MAIN METHOD}
//END OF ResumeClient Object}
//END OF ResumeClientNamespace
