Compiling .Net Remoting Client
-
Hi, I am making my first .Net Remoting program in Visula Studio 2005. When i add the the namespace of the server in the client at the top like this: using BasicServer; and then compile my program, it gives error message, Unknow namespace or type. Please tell me how to compile this program. I am making both Client and Server on the same machine. I have not included reference to the dll of my Server. Should i add that too? I intend to test these on different machines. Thanks in advance... Regards, Wasif Ehsan.
-
Hi, I am making my first .Net Remoting program in Visula Studio 2005. When i add the the namespace of the server in the client at the top like this: using BasicServer; and then compile my program, it gives error message, Unknow namespace or type. Please tell me how to compile this program. I am making both Client and Server on the same machine. I have not included reference to the dll of my Server. Should i add that too? I intend to test these on different machines. Thanks in advance... Regards, Wasif Ehsan.
Hi, if u are going to use your server class directly in your cliend , then u shall use soapsuds to extract the type information, add reference to it and then include the namespace. But in any remoting scenario, it is recommended to go with a Common interface / abstarct class between client and the server and thereby adding reference to the dll containing the interface / abstract class. Make your remoting server class implement the interface / inherit the abstract class, Hope this helped you. Love all,