I use an office adding (wriiten by me with VS) as a remoting server to supply the office application object (Excel,Word,PP) to a client application that sometimes lunches these applications (from command line - not with interop).
When the office application is lucnched - the addin is loaded and uses register a well known type using a TCP channel with the same port always.
The addin is common for all office applications.
When the first application is lunched (say: Excel) the TCPChanel is successfully registered and the client application can get the application object
When the second application is lunched (say: PP), and before the Excel is closed, the channel registration fails with a SocketException "Only one usage of each socket address (protocol/network address/port) is normally permitted".
This happens when instantiating the channel and not when registering it
channelDictionary["name"] = TCPChannelName;
channelDictionary["port"] = TCPChannelPort;
channel = new TcpChannel(channelDictionary, null, null);
the name and port are always the same but since it is always a different process (PP, Excel) it should work as the name must be unique per application domain. Isnt it?
Another question conce
View Complete Post