Error creating IpcChannel on French XP machine
I have service application that talks to a windows application using
IpcChannel, with a callback IpcChannel from the windows client to the service.
I have the system up and running on 4 actual XP machines and 2 virtual
machines, (all XP English / British installs); and the system runs fine.
However; if I install the system on French XP SP3 virtual machine, the
service fails to start and I get an unhandled exception. I have created an
English XP SP3 virtual machine on the same platform and the system works fine.
I implemented an UnhandledExceptionEventHandler and added some debug code to
track the probelm down; the problem occurs when I create the IpcChannel, as
shown below:
BinaryClientFormatterSinkProvider clientProvider = new
BinaryClientFormatterSinkProvider();
BinaryServerFormatterSinkProvider serverProvider = new
BinaryServerFormatterSinkProvider();
IDictionary prop = new Hashtable();
serverProvider.TypeFilterLevel =
System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
prop["portName"] = "the-imcgroup.com";
prop["authorizedGroup"] = "Everyone";
IpcChannel channel = new IpcChannel(prop, clientProvider, serverProvider);
The line "IpcChannel channel = new IpcChannel(prop, clientProvider,
serverProvider);" throws the following Exception: "Some or all identity
references could not be translated."
Having searched the internet, I suspect this is to do with the use of
english in the "prop" Hash table text, but I can not find any references to a
fix.
Any help would be greatly appreciated.
Colin.
date: Thu, 19 Jun 2008 03:08:05 -0700
author: ColinB