I am trying to use an App.config for a Windows Service application which is hosting Remoting and is developed in .NET3.5. In that App.config, I would like to keep some values which I will be using across the solution. I am not adding Remoting relation configuration stuff to it. But while running application it is expecting Remoting related configuration stuff in App.config. I dont want to put Remoting related configuration in that file. How I can resolve this issue?
views:
259answers:
2
+1
A:
You can configure remoting programmatically,
to register a channel you can
IChannel tcpChannel = new TcpChannel(8888);
ChannelService.RegisterChannel(tcpChannel);
Basicly everything can be configured in code.
I would recommend Ingo Rammer's Advanced .Net Remoting!
Louis Haußknecht
2009-10-12 07:38:37
A:
You could put your remoting configuration stuff in a separate file, then configure remoting by calling:
System.Runtime.Remoting.RemotingConfiguration.Configuration(myConfigFileName, true);
Joe
2009-10-12 07:45:23