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?

[169 byte] By [msdnjw] at [2008-1-12]
# 1
Hi,

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

Vikram at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...
# 2
Not too far off what i was thinking off. my concern was to make sure i am not way off in my model.
Thanks Again..
msdnjw at 2007-8-21 > top of Msdn Tech,.NET Development,.NET Framework Networking and Communication...

.NET Development

Site Classified