[Mono-dev] CultureInfo not supported

Atsushi Eno atsushi at ximian.com
Sun Apr 2 17:36:29 EDT 2006


Mmm, thanks for the bug info. BTW for nb-NO I've committed the fix
in svn.

If you cannot control serialization on the other side, you can't
do anything but modifying the input XML to strip the culture info.

Atsushi Eno

Ivano Luberti wrote:
> Hi Atsushi.
> I have found that someone already has reported this as a bug
> 
> http://bugzilla.ximian.com/show_bug.cgi?id=69652
> 
> 
> Speaking of the workouround you suggest: I cant' do that beacuse I 
> receive the dataset from a web service and the exception raise during 
> the deserialization process.
> 
> Here is the stack trace:
> 
> Parameter name: name
> 2006-04-01 21:21:40,245 [1200] 
> DocProviderWS.Sources.ImplementazioneDocProviderWS.getVerbatims(:0) 
> DocProviderWS.Sources.ImplementazioneDocProviderWS.getVerbatims(:0) 
> [DEBUG{NDC}] - in <0x000fb> System.Globalization.CultureInfo:.ctor 
> (System.String name, Boolean use_user_override)
> in <0x0000f> System.Globalization.CultureInfo:.ctor (System.String name)
> in <0x00119> System.Data.XmlSchemaDataImporter:ProcessDataSetElement 
> (System.Xml.Schema.XmlSchemaElement el)
> in <0x000be> System.Data.XmlSchemaDataImporter:ProcessGlobalElement 
> (System.Xml.Schema.XmlSchemaElement el)
> in <0x00462> System.Data.XmlSchemaDataImporter:Process ()
> in <0x00027> System.Data.DataSet:ReadXmlSchema (System.Xml.XmlReader 
> reader)
> in <0x00576> System.Data.DataSet:ReadXml (System.Xml.XmlReader reader, 
> XmlReadMode mode)
> in <0x0000f> System.Data.DataSet:ReadXmlSerializable 
> (System.Xml.XmlReader reader)
> in <0x00011> 
> System.Data.DataSet:System.Xml.Serialization.IXmlSerializable.ReadXml 
> (System.Xml.XmlReader reader)
> in <0x00046> 
> System.Xml.Serialization.XmlSerializationReader:ReadSerializable 
> (IXmlSerializable serializable)
> in <0x00193> 
> System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadObjectElement 
> (System.Xml.Serialization.XmlTypeMapElementInfo elem)
> in <0x01e04> 
> System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadMembers 
> (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean 
> isValueList, Boolean readByOrder)
> in <0x0003c> 
> System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadClassInstanceMembers 
> (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob)
> in <0x00194> 
> System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadClassInstance 
> (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, 
> Boolean checkType)
> in <0x0005f> 
> System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadObject 
> (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, 
> Boolean checkType)
> in <0x000e1> 
> System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadObjectElement 
> (System.Xml.Serialization.XmlTypeMapElementInfo elem)
> in <0x01e04> 
> System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadMembers 
> (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean 
> isValueList, Boolean readByOrder)
> in <0x001d4> 
> System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadMessage 
> (System.Xml.Serialization.XmlMembersMapping typeMap)
> in <0x000c6> 
> System.Xml.Serialization.XmlSerializationReaderInterpreter:ReadRoot ()
> in <0x0005d> System.Xml.Serialization.XmlSerializer:Deserialize 
> (System.Xml.Serialization.XmlSerializationReader reader)
> in <0x00040> System.Xml.Serialization.XmlSerializer:Deserialize 
> (System.Xml.XmlReader xmlReader)
> in <0x000d9> 
> System.Web.Services.Protocols.WebServiceHelper:ReadSoapMessage 
> (System.Xml.XmlTextReader xmlReader, 
> System.Xml.Serialization.XmlSerializer bodySerializer, 
> System.Xml.Serialization.XmlSerializer headerSerializer, System.Object 
> body, System.Web.Services.Protocols.SoapHeaderCollection headers)
> in <0x0003e> 
> System.Web.Services.Protocols.WebServiceHelper:ReadSoapMessage 
> (System.Xml.XmlTextReader xmlReader, 
> System.Web.Services.Protocols.SoapMethodStubInfo method, 
> SoapHeaderDirection dir, System.Object body, 
> System.Web.Services.Protocols.SoapHeaderCollection headers)
> in <0x002bd> 
> System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse 
> (System.Net.WebResponse response, 
> System.Web.Services.Protocols.SoapClientMessage message, 
> System.Web.Services.Protocols.SoapExtension[] extensions)
> in <0x0024f> System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke 
> (System.String method_name, System.Object[] parameters)
> in <0x0005e> DocProviderWS.wssurveydata.SurveyData:GetData 
> (System.String key, DocProviderWS.wssurveydata.TransferDefBase 
> transferDef, DocProviderWS.wssurveydata.ResponseToken token)
> in (wrapper remoting-invoke-with-check) 
> DocProviderWS.wssurveydata.SurveyData:GetData 
> (string,DocProviderWS.wssurveydata.TransferDefBase,DocProviderWS.wssurveydata.ResponseToken) 
> 
> in <0x001f1> 
> DocProviderWS.Sources.ImplementazioneDocProviderWS:getVerbatims 
> (DocProviderWS.Sources.Identificatorequestionario idquestionario, 
> DocProviderWS.Sources.DomandaTestoLibero domanda, 
> DocProviderWS.Sources.ParametriQuery parametri)
> 
> 
> At 14.40 28/03/2006, Atsushi Eno wrote:
> 
>> Hi,
>>
>> But I'll add support for nb-NO culture to the runtime.
>>
>> For your question, the answer would be "yes" - to workaround this
>> problem with current mono, try
>>
>>         yourDataSet.Locale = CultureInfo.InvariantCulture;
>>
>> Atsushi Eno
>>
>> Ivano Luberti wrote:
>>> I'm developing a web service client that connect to a server that 
>>> returns a DataSet in which the CulureInfo name is nb-NO.
>>> Mono raises an excpetion because this name is not supported.
>>> There is a way, without modifying and re-compiling to make mono 
>>> runtime ignore CulturInfo name or to use a default ?
>>
>>
>>
>>
>> -- 
>> No virus found in this incoming message.
>> Checked by AVG Anti-Virus.
>> Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 27/03/2006
> 
> ==================================================
> Archimede Informatica NEWS!
> ==================================================
> 
> Realizzato il Sistema Integrato per la biglietteria della Torre di Pisa:
> prenotazione, vendita, pre-vendita ed emissione dei biglietti di ingresso
> alla Torre sia online che presso le biglietterie dislocate sulla piazza:
> 
> http://www.opapisa.it/boxoffice
> 
> Partner del Progetto Ci-Tel "Front office Telematico per il cittadino"
> Ente Coordinatore Comune di Pisa
> 
> http://www.comune.pisa.it/doc/e-government.htm
> 
> 
> ==================================================
> dott. Ivano Mario Luberti
> Archimede Informatica societa' cooperativa a r. l.
> Sede Operativa
> Via Gereschi 36 - 56126- Pisa
> tel.: +39-050- 580959
> tel/fax: +39-050-9711344
> e-mail: archimede at archicoop.it
> web: http://www.archicoop.it
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.1.385 / Virus Database: 268.3.4/299 - Release Date: 31/03/2006





More information about the Mono-devel-list mailing list