[Mono-list] Runing NUnit with version 1.2.9

Rolando Martinez rolandomartinezg at gmail.com
Sun Aug 3 23:45:44 EDT 2008


Thanks you Charlie for your help. That was very useful for me...
And now I have another question, Why is the reason with this change of
"Encoding"?. My question is because now I have another 3rdparty
(MySql.Data.dll) wich is not working with this version

basically the mysql connector is not working due to:

public Driver(MySqlConnectionStringBuilder settings)
            encoding = Encoding.GetEncoding(1252);   <---- ups!!!!
            connectionString = settings;
            threadId = -1;
            serverCharSetIndex = -1;
            serverCharSet = null;
            hasWarnings = false;

Thank you for your help =).
Date: Sun, 3 Aug 2008 03:32:38 -0700
From: "Charlie Poole" <charlie at nunit.com>
Subject: Re: [Mono-list] Runing NUnit with version 1.2.9
To: <mono-list at lists.ximian.com>
Message-ID: <001d01c8f554$40d8b0e0$6401a8c0 at ferrari>
Content-Type: text/plain; charset="us-ascii"

Just modify  NUnit's config file to use UTF-8.


From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Rolando Martinez
Sent: Saturday, August 02, 2008 10:12 PM
To: mono-list at lists.ximian.com
Subject: [Mono-list] Runing NUnit with version 1.2.9

Hi all,
I downloaded the version number 1.9.1 of Mono and but when I try run some
assembly using NUnit I got the next error message.

Thank you for your help!

Unhandled Exception: System.ArgumentException: Encoding name 'Windows-1252'
not supported
Parameter name: name
 at System.Text.Encoding.GetEncoding (System.String name) [0x00000]
 at System.Xml.XmlInputStream.Initialize (System.IO.Stream stream)
 at System.Xml.XmlInputStream..ctor (System.IO.Stream stream) [0x00000]
 at (wrapper remoting-invoke-with-check) System.Xml.XmlInputStream:.ctor
 at System.Xml.XmlStreamReader..ctor (System.IO.Stream input) [0x00000]
 at (wrapper remoting-invoke-with-check) System.Xml.XmlStreamReader:.ctor
 at System.Xml.XmlTextReader..ctor (System.IO.Stream input) [0x00000]
 at System.Configuration.Configuration.Load () [0x00000]
 at System.Configuration.Configuration.Init (IConfigSystem system,
System.String configPath, System.Configuration.Configuration parent)
 at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String
locationSubPath) [0x00000]
 at System.Configuration.InternalConfigurationFactory.Create (System.Type
typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000]
 at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal
(ConfigurationUserLevel userLevel, System.Reflection.Assembly
calling_assembly, System.String exePath) [0x00000]
.IInternalConfigSystem.GetSection (System.String configKey) [0x00000]
 at System.Configuration.ConfigurationManager.GetSection (System.String
sectionName) [0x00000]
 at System.Configuration.ConfigurationSettings.GetConfig (System.String
sectionName) [0x00000]
 at System.Diagnostics.DiagnosticsConfiguration.get_Settings () [0x00000]
 at System.Diagnostics.Switch.GetConfigFileSetting () [0x00000]
 at System.Diagnostics.Switch.get_SwitchSetting () [0x00000]
 at System.Diagnostics.TraceSwitch.get_TraceInfo () [0x00000]
 at NUnit.Core.NTrace.Info <http://nunit.core.ntrace.info/> (System.String
message) [0x00000]
 at NUnit.ConsoleRunner.Runner.Main (System.String[] args) [0x00000]
 at NUnit.ConsoleRunner.Class1.Main (System.String[] args) [0x00000]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080803/3592e435/attachment.html 

More information about the Mono-list mailing list