I'm working on my first .net remoting project. The ultimate aim to be able to consume some server based software from an application. Document creation to be exact, I want to be able to create a client the can pass information to a remote object on
the server that will create the document for me and deposit it in a specified place.
I'm still working on a simple test project and while it runs I'm pretty sure it's not actually remoting at all.
I've created by remotable class and compiled the dll. I've created a service to act as a listener. Both appear to install and at least start correctly.
I've created windows form client that very simply returns the machine name via the remote class. But when I run the client I get back the local machine name not the remote machine. In order to get the client to compile I've added a reference to the
remotable class dll file, and I'm assuming that my code is now creating the object from that dll rather than the remote one. The object is certainly returning results based on it running locally and not on the server. The machine name returned is the local
one and a quick test to open a file on the server failed as it was looking in the local application directory.
My client code is: