I have created remote object and hosted on Windows Service. The client app connects to remote object when the windows service is installed on the same machine as the client app.
When the windows service is running on another application server, then it fails with following error msg.
Message: Exception has been thrown by the target of an invocation.
Source: mscorlib
Stack Trace:
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Digi_App_Client.Form1.Button1_Click(Object sender, EventArgs e) in F:\Misc\From C\NET Remoting\Digi\Digi_App_Client\Form1.vb:line 101"
The object is created with:Activator.CreateInstance
The IP address and the port number are double checked, other than this info, is there any thing else required to inform the client app to connect to application server I have spent lot of time looking for specifics both in books and on-line, didn't find any solution. Please share you thoughts.
BTW, Web Services is not an option for us and Windows app or console app requires application running with a dedicated user logged in, which is not preferred.
Thanks.

Remote object hosted on a windows service