K
keith
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
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.AddWellKnownClientType(WellKnownClientTypeEntry
entry)\r\n at
System.Runtime.Remoting.RemotingConfigHandler.RegisterWellKnownClientType(WellKnownClientTypeEntry
entry)\r\n at
System.Runtime.Remoting.RemotingConfiguration.RegisterWellKnownClientType(WellKnownClientTypeEntry
entry)\r\n at
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StoreRemoteAppEntries(RemotingXmlConfigFileData
configData)\r\n at
System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData
configData, Boolean ensureSecurity)'.\r\n at
System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData
, Boolean ensureSecurity)\r\n at
System.Runtime.Remoting.RemotingConfigHandler.DoConfiguration(String
filename, Boolean ensureSecurity)\r\n at
System.Runtime.Remoting.RemotingConfiguration.Configure(String filename,
Boolean ensureSecurity)\r\n at
JINDEXMessagingService.DoRemoteProcess(JINDEXDocument jDoc) in
c:\\Inetpub\\wwwroot\\WS1\\App_Code\\Test.cs:line 103"
Can you help?
Thanks
Keith
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
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.AddWellKnownClientType(WellKnownClientTypeEntry
entry)\r\n at
System.Runtime.Remoting.RemotingConfigHandler.RegisterWellKnownClientType(WellKnownClientTypeEntry
entry)\r\n at
System.Runtime.Remoting.RemotingConfiguration.RegisterWellKnownClientType(WellKnownClientTypeEntry
entry)\r\n at
System.Runtime.Remoting.RemotingConfigHandler.RemotingConfigInfo.StoreRemoteAppEntries(RemotingXmlConfigFileData
configData)\r\n at
System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData
configData, Boolean ensureSecurity)'.\r\n at
System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData
, Boolean ensureSecurity)\r\n at
System.Runtime.Remoting.RemotingConfigHandler.DoConfiguration(String
filename, Boolean ensureSecurity)\r\n at
System.Runtime.Remoting.RemotingConfiguration.Configure(String filename,
Boolean ensureSecurity)\r\n at
JINDEXMessagingService.DoRemoteProcess(JINDEXDocument jDoc) in
c:\\Inetpub\\wwwroot\\WS1\\App_Code\\Test.cs:line 103"
Can you help?
Thanks
Keith