Remote DLL referencing
Hello All,
How can i reference a dll on the server.. i am not talking about web services of course. A pure DLL residing on the server, how can I reference it?
Hello All,
How can i reference a dll on the server.. i am not talking about web services of course. A pure DLL residing on the server, how can I reference it?
The only way to achieve this would be to use DCOM by registering your .NET DLL for COM Interop on the server.
//Get type reference
Type srvType = Type.GetTypeFromProgID("Some.Prog.Id", "some.host.ip");
//Get remote object reference
dcomtype serverRef = (dcomtype)Activator.CreateInstance(srvType);
//Make the call
string ReplyData = (string) serverRef.Request(param1, param2);
//where Request is a method implemented by my DCOM server.
If you are looking at a pure .NET only solution, then WebServices and .NET Remoting are the only two options that come close.
.NET Remoting
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/hawkremoting.asp
Regards,
Vikram
http://dotnetupdate.blogspot.com