[Mono-devel-list] RE: [Remoting-corba-developer] Building 1.3.1 with mono 0.24 resu lts in the following error
Urs Muff
umuff at quark.com
Tue May 20 08:44:17 EDT 2003
That means that System.Text.Encoding.GetEncoding(string) is still not
supported in mono. (Not implemented yet...)
I truly hope that this will change in the near future.
- URS C. MUFF
SOFTWARE ARCHITECT - RESEARCH LAB
-----Original Message-----
From: Damian ONeill [AePONA] [mailto:Damian.ONeill at aepona.com]
Sent: Tuesday, May 20, 2003 6:31 AM
To: Urs Muff
Cc: 'Remoting .Corba'
Subject: Re: [Remoting-corba-developer] Building 1.3.1 with mono 0.24 resu
lts in the following error
This is compiling against the release 0.24 rpm and the 1.3.1 zip file
downloadable from Kris's website.
I have been unable to get the server running. When I build the binary,
running the application results in:
setenv MONO_PATH
/data/RemotingCorba_1_3_1/RemotingCorba/RemotingCorbaLibrary/:/usr/lib
caddick(do0163)-34> mono TestServer
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for Remoting.Corba.CorbaServices --->
System.NotSupportedException: NotSupp_EncodingName
in <0x002db> 00 System.Text.Encoding:GetEncoding (string)
in <0x0000f> 00 Remoting.Corba.CorbaServices:.cctor ()
--- End of inner exception stack trace ---
in (unmanaged) 00 Remoting.Corba.CorbaServices:ObjectUriToObjectKey (string)
in <0x000a5> 00
Remoting.Corba.Channels.Iiop.IiopServerChannel:GetIorForObject
(System.MarshalByRefObject)
in <0x00014> 00 Remoting.Corba.Channels.Iiop.IiopChannel:GetIorForObject
(System.MarshalByRefObject)
in <0x000ef> 00 Remoting.Corba.TestServer.TestServer:Main (string[])
I am only learning c# at the moment so I am not sure about the error but
I took a look at the ObjectUriToOjbectKey method, the error implies a
Encoding not supported exception, within the method the only call that
looks capable of doing this is Convert.ToByte.
I checked mono's class support and it says Convert is 100% complete and
their are no errors raised against it (although this doesnt mean there
arent any).
any ideas?
Urs Muff wrote:
> Did you get it to run under mono 0.24 or the current CVS version?
>
> - URS C. MUFF
> SOFTWARE ARCHITECT - RESEARCH LAB
> Quark Inc.
>
> -----Original Message-----
> From: Damian ONeill [AePONA] [mailto:Damian.ONeill at aepona.com]
> Sent: Tuesday, May 20, 2003 5:23 AM
> To: Remoting .Corba
> Subject: [Remoting-corba-developer] Building 1.3.1 with mono 0.24 results
in
> the following error
>
> mcs /target:library -o Remoting.Corba.dll *.cs
> IiopChannelBase.cs(87) error CS0177: The out parameter `objectURI' must
> be assigned before control leave the current method.
> Compilation failed: 1 error(s), 0 warnings
>
> Moving
>
> objectURI = null;
>
> to the start of the method allows it to compile.
>
>
> 64d63
> < objectURI = null;
> 88c87,88
> < CorbaServices.Trace(" URL is not usable by IIOP channel");
> ---
> > CorbaServices.Trace(" URL is not usable by IIOP channel");
> > objectURI = null;
>
>
>
>
> D
>
>
>
--
damian.oneill at aepona.com
Damian O'Neill
Software Engineer
AePONA Ltd,
Interpoint Building,
20-24 York Street,
Belfast,
BT15 1AQ
+44 (0) 2890 275246
http://www.aepona.com
More information about the Mono-devel-list
mailing list