Re: error when calling remote component in Web Service
- From: "John Saunders" <no@xxxxxxxxxxxxxxxx>
- Date: Thu, 30 Oct 2008 18:30:50 -0400
"keith" <keith@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:9CA9E569-6511-4F69-BF31-83E7C14EEED9@xxxxxxxxxxxxxxxx
I have a remote component hosted in console server and have a web service.
Inside the web service, I have codes to configure the component
System.Runtime.Remoting.RemotingConfiguration.Configure(filename)
IComponent iCom = (IComponent)Activator.GetObject(typeof(Component),
"tcp://localhost:1234/Component.rem");
iCom.Hello();
I have a test app (all these projects are in same solution) that calls a
method in the WS. Then it calls a function in the
remote component. When running it the first time. It worked just fine.
But when running it thereafter, it throw
"System.Runtime.Remoting.RemotingException: Remoting configuration failed
with the exception 'System.Runtime.Remoting.RemotingException: Attempt to
redirect activation of type 'Test.IComponent,TestInterface' which is already
redirected.\r\n at
Did you not understand "Attempt to redirect activation of type 'Test.IComponent,TestInterface' which is already redirected"? Did you notice which line it failed on?
--
John Saunders | MVP - Connected System Developer
.
- Follow-Ups:
- References:
- Prev by Date: error when calling remote component in Web Service
- Next by Date: Re: error when calling remote component in Web Service
- Previous by thread: error when calling remote component in Web Service
- Next by thread: Re: error when calling remote component in Web Service
- Index(es):
Loading