[Mono-list] System.Xml.Serialization.XmlSerializer bug?

eschneider at schneidersoft.com eschneider at schneidersoft.com
Sun Jan 27 12:35:22 EST 2008


E:\AAAA-Controls\Products_SS\SchneiderSoft.UIControls\TestApp\bin\Debug>mono
--d
ebug testapp.exe

Unhandled Exception: System.InvalidOperationException: An error occured
while cr
eating the form. See Exception.InnerException for details. The error is:
Excepti
on has been thrown by the target of an invocation. --->
System.Reflection.Target
InvocationException: Exception has been thrown by the target of an
invocation. -
--> System.TypeInitializationException: An exception was thrown by the type
init
ializer for System.Xml.Serialization.XmlSerializer --->
System.Configuration.Con
figurationException: Error in 'DefaultSwitch': The value of a switch must be
int
egral ()
  at
System.Diagnostics.DiagnosticsConfigurationHandler.ValidateIntegralValue (S
ystem.String name, System.String value) [0x00012] in
C:\cygwin\tmp\monobuild\bui
ld\BUILD\mono-1.2.5.2\mcs\class\System\System.Diagnostics\DiagnosticsConfigu
rati
onHandler.cs:233
  at System.Diagnostics.DiagnosticsConfigurationHandler.AddSwitchesNode
(IDictio
nary d, System.Xml.XmlNode node) [0x000b1] in
C:\cygwin\tmp\monobuild\build\BUIL
D\mono-1.2.5.2\mcs\class\System\System.Diagnostics\DiagnosticsConfigurationH
andl
er.cs:204
  at System.Diagnostics.DiagnosticsConfigurationHandler.Create
(System.Object pa
rent, System.Object configContext, System.Xml.XmlNode section) [0x00138] in
C:\c
ygwin\tmp\monobuild\build\BUILD\mono-1.2.5.2\mcs\class\System\System.Diagnos
tics
\DiagnosticsConfigurationHandler.cs:136
  at System.Configuration.ConfigurationSection.GetRuntimeObject () [0x0002b]
in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.5.2\mcs\class\System.Configurat
ion\
System.Configuration\ConfigurationSection.cs:73
  at
System.Configuration.ClientConfigurationSystem.System.Configuration.Interna
l.IInternalConfigSystem.GetSection (System.String configKey) [0x00043] in
C:\cyg
win\tmp\monobuild\build\BUILD\mono-1.2.5.2\mcs\class\System.Configuration\Sy
stem
.Configuration\ClientConfigurationSystem.cs:52
  at System.Configuration.ConfigurationManager.GetSection (System.String
section
Name) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.5.2\mcs\class\Sy
stem.Configuration\System.Configuration\ConfigurationManager.cs:164
  at System.Configuration.ConfigurationSettings.GetConfig (System.String
section
Name) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.5.2\mcs\class\Sy
stem\System.Configuration\ConfigurationSettings.cs:87
  at System.Xml.Serialization.XmlSerializer..cctor () [0x000f3] in
C:\cygwin\tmp
\monobuild\build\BUILD\mono-1.2.5.2\mcs\class\System.XML\System.Xml.Serializ
atio
n\XmlSerializer.cs:154 --- End of inner exception stack trace ---

  at <0x00000> <unknown method>
  at SchneiderSoft.GateKeepers.ConfigFile.ResourceProvider.DeserializeStream
(Sy
stem.IO.Stream streamData, System.Object itemType, System.Type[] extraTypes)
[0x
00000] --- End of inner exception stack trace ---

  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invok
eAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globa
lization.CultureInfo culture) [0x00065] in
C:\cygwin\tmp\monobuild\build\BUILD\m
ono-1.2.5.2\mcs\class\corlib\System.Reflection\MonoMethod.cs:391
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
System.Refle
ction.Binder binder, System.Object[] parameters,
System.Globalization.CultureInf
o culture) [0x00000] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.5.2\mcs\cla
ss\corlib\System.Reflection\MonoMethod.cs:396
  at System.Reflection.ConstructorInfo.Invoke (System.Object[] parameters)
[0x00
00f] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.5.2\mcs\class\corlib\System
.Reflection\ConstructorInfo.cs:77
  at System.Activator.CreateInstance (System.Type type, Boolean nonPublic)
[0x00
084] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.5.2\mcs\class\corlib\System
\Activator.cs:260
  at System.Activator.CreateInstance (System.Type type) [0x00000] in
C:\cygwin\t
mp\monobuild\build\BUILD\mono-1.2.5.2\mcs\class\corlib\System\Activator.cs:1
61
  at System.Reflection.Assembly.CreateInstance (System.String typeName,
Boolean
ignoreCase) [0x00013] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.5.2\mcs\cl
ass\corlib\System.Reflection\Assembly.cs:593
  at System.Reflection.Assembly.CreateInstance (System.String typeName)
[0x00000
] in
C:\cygwin\tmp\monobuild\build\BUILD\mono-1.2.5.2\mcs\class\corlib\System.Re
flection\Assembly.cs:583
  at SchneiderSoft.UIControls.AdapterServices.CreateInstance
(SchneiderSoft.UICo
ntrols.AdapterItem adapter) [0x00000] --- End of inner exception stack trace
---


  at TestApp.My.MyProject+MyForms.Create__Instance__[FormMain]
(TestApp.FormMain
 Instance) [0x00000]
  at TestApp.My.MyProject+MyForms.get_FormMain () [0x00000]
  at TestApp.FormMain.Main () [0x00000]

E:\AAAA-Controls\Products_SS\SchneiderSoft.UIControls\TestApp\bin\Debug>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080127/648699b4/attachment-0001.html 


More information about the Mono-list mailing list