So I have this Windows Service which exposes a remotable class.

VB Code:
  1. Dim chan As TcpChannel = New TcpChannel(8085)
  2.         ChannelServices.RegisterChannel(chan)
  3.  
  4.         RemotingConfiguration.RegisterWellKnownServiceType( _
  5.         GetType(lcnremote.MyRemoteClass), _
  6.         "RemoteLicense", _
  7.         WellKnownObjectMode.Singleton)

This is how I attempt to connect to the class:

VB Code:
  1. Dim chan As TcpChannel = New TcpChannel
  2.         ChannelServices.RegisterChannel(chan)
  3.  
  4.         Dim obj As MyRemoteClass
  5.  
  6.         obj = CType(Activator.GetObject( _
  7.         Type.GetType("lcnRemote.MyRemoteClass, lcnRemote"), _
  8.         "tcp://localhost:8085/RemoteLicense"), MyRemoteClass)

But I get the following Error Message!

Code:
Value cannot be null. Parameter name: type
As far as I know I've referenced everything I should have...
Does anyone know what might be wrong?



Thanks!