troubleshooting Question

.NET Remoting (GetObejct vs. RemotingConfiguration.Configure)

Avatar of kalliopi
kalliopi asked on
.NET ProgrammingC#Visual Basic.NET
5 Comments2 Solutions551 ViewsLast Modified:
I have a strange situation.  I have a client app, where this line works correctly:
MyRemoteObj liason = (MyRemoteObj)Activator.GetObject(typeof(MyRemoteObj), 
"tcp://localhost:2396/MyRemoteObj");
But after doing this:
 
 RemotingConfiguration.RegisterWellKnownServiceType(typeof(MyRemoteObj),    
"tcp:`//localhost:2396/MyRemoteObj", WellKnownObjectMode.Singleton);
or this:
 
  String path = String.Format("{0}.config", Application.ExecutablePath);    
RemotingConfiguration.Configure(path, false);
I am UNABLE to use
MyRemoteObject liason = new MyRemoteObject();
It simply instantiates a new local object.  What am I missing?
My App config includes this:
  <system.runtime.remoting>
    <application>
      <client>
        <wdellknown type="Testing.MyRemoteObject, Testing" url="tcp://localhost:2396/MyRemoteObj"/>
      </client>
    </application>
  </system.runtime.remoting>
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros