[Mono-list] Runing NUnit with version 1.2.9
Atsushi Eno
atsushi at ximian.com
Wed Aug 6 06:46:10 EDT 2008
Hello,
It is possible that you don't install required locale packages. Make
sure to install
full packages.
The following code demonstrates that Windows-1252 is supported:
using System;
using System.IO;
using System.Text;
using System.Xml;
public class Test
{
public static void Main ()
{
Encoding.GetEncoding (1252);
Encoding.GetEncoding ("Windows-1252");
byte [] bytes = Encoding.GetEncoding (1252).GetBytes (
"<?xml version='1.0' encoding='Windows-1252'?><foo />");
XmlTextReader r = new XmlTextReader (new MemoryStream (bytes));
r.Read ();
r.Read ();
}
}
Atsushi Eno
> 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)
> [0x00000]
> at System.Xml.XmlInputStream..ctor (System.IO.Stream stream) [0x00000]
> at (wrapper remoting-invoke-with-check)
> System.Xml.XmlInputStream:.ctor (System.IO.Stream)
> at System.Xml.XmlStreamReader..ctor (System.IO.Stream input) [0x00000]
> at (wrapper remoting-invoke-with-check)
> System.Xml.XmlStreamReader:.ctor (System.IO.Stream)
> 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)
> [0x00000]
> 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]
> at
> System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.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]
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
More information about the Mono-list
mailing list