So I have this Windows Service which exposes a remotable class.
VB Code:
Dim chan As TcpChannel = New TcpChannel(8085) ChannelServices.RegisterChannel(chan) RemotingConfiguration.RegisterWellKnownServiceType( _ GetType(lcnremote.MyRemoteClass), _ "RemoteLicense", _ WellKnownObjectMode.Singleton)
This is how I attempt to connect to the class:
VB Code:
Dim chan As TcpChannel = New TcpChannel ChannelServices.RegisterChannel(chan) Dim obj As MyRemoteClass obj = CType(Activator.GetObject( _ Type.GetType("lcnRemote.MyRemoteClass, lcnRemote"), _ "tcp://localhost:8085/RemoteLicense"), MyRemoteClass)
But I get the following Error Message!
As far as I know I've referenced everything I should have...Code:Value cannot be null. Parameter name: type
Does anyone know what might be wrong?
:confused:
Thanks!
