It seems that the server uses WChar codeset, that is not implemented in IIOPNet. For proper diagnostic you should provide logs from the debug build of IIOPChannel.dll and exact version of IIOPNet you use.
Regards,
Alexander
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I try to connect to a Corba Server, which use JacORB, with following code:
IiopChannel sChannel = new IiopChannel(0);
ChannelServices.RegisterChannel(sChannel, false);
CorbaSessionManager sessionManager = (CorbaSessionManager)RemotingServices.Connect(typeof(CorbaSessionManager), loc );
CorbaClientImpl client = new CorbaClientImpl(server);
CorbaSessionParameters param = new CorbaSessionParameters(user, passwort, other, db, other);
CorbaSessionCreationResult result = sessionManager.createSession(client, param);
but this code throws this exception by executing the last line:
CORBA system exception : omg.org.CORBA.BAD_PARAM , completed: Completed_MayBe minor: 987
How can i solve this problem without any access to JacORB?
Hi,
It seems that the server uses WChar codeset, that is not implemented in IIOPNet. For proper diagnostic you should provide logs from the debug build of IIOPChannel.dll and exact version of IIOPNet you use.
Regards,
Alexander
I have worked around this problem by manually defining my interface using byte arrays instead of strings, then performing the conversion manually, as described at http://stackoverflow.com/questions/6031381/how-to-access-corba-interface-without-idl-or-late-bound-invoke-remoting-methods/6048136#6048136