I created a class in VB that has a sub that takes a server URI as an agrument to call:

RemotingConfiguration.RegisterWellKnownClientType(GetType(Assembly.Class), _URL)

Then I call a different function to return the data from my remote object. Everything here works perfectly, and I can change the URL that I'm registering, so I can hit different servers at run time. I'm guessing the reason I can change the URL without causing an error is because I'm testroying the class in which RegisterWellKnownClientType is being called.

Now for the problem -
I ported my code to c#, line by line. However (obviously) c# doesn't have a Nothing keyword, so I can't set my class to Nothing. The problem is that when RegisterWellKnownClientType after the first class is created I get an error. To me that's suggesting that the class I'm creating is not being destroyed... but how do you explicitly destroy a class in c#??

Please help!!!