Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Thu, 19 Jun 2008 03:08:05 -0700,    group: microsoft.public.dotnet.framework.remoting        back       


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

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us