[Mono-bugs] [Bug 437537] New: [regression] Resources not getting compiled into assemblies correctly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 21 18:06:16 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=437537


           Summary: [regression] Resources not getting compiled into
                    assemblies correctly
           Product: Mono: Compilers
           Version: 2.0
          Platform: i586
        OS/Version: SLED 10
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: twiest at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Component Test


Description of Problem:
When I try to run the ChessBoard from wf-apps, I get a
TargetInvocationException complaining about .resources (see below).

If I run the ChessBoard compiled with Mono 1.9.1, it works fine. It only gives
me this error if I run ChessBoard compiled with Mono 2.0.

Also, I get this on both Mono 2.0 and 2.0.1rc1.


Steps to reproduce the problem:
1. Install wf-apps from this URL:
    
http://download.opensuse.org/repositories/Mono:/Community/openSUSE_11.0+Mono/noarch/wf-apps-r892-2.2.noarch.rpm
2. Run it on Mono 2.0.1rc1
3. Notice the error.


Actual Results:
Unhandled Exception: System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocat
ion. ---> System.NotSupportedException: This .resources file requires
unsupported set class version: 2
  at System.Resources.ResourceReader.ReadHeaders () [0x00000] 
  at System.Resources.ResourceReader..ctor (System.IO.Stream stream) [0x00000] 
  at System.Resources.ResourceSet..ctor (System.IO.IntPtrStream stream)
[0x00000] 
  at System.Resources.RuntimeResourceSet..ctor (System.IO.IntPtrStream stream)
[0x00000] 
  at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke
(object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder,
 System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000] 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder,
 System.Object[] parameters, System.Globalization.CultureInfo culture)
[0x00000] 
  at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
System.Reflection.Binder binder, System.Object[] pa
rameters, System.Globalization.CultureInfo culture) [0x00000] 
  at System.Activator.CreateInstance (System.Type type, BindingFlags
bindingAttr, System.Reflection.Binder binder, Syst
em.Object[] args, System.Globalization.CultureInfo culture, System.Object[]
activationAttributes) [0x00000] 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args,
System.Object[] activationAttributes) [0x
00000] 
  at System.Activator.CreateInstance (System.Type type, System.Object[] args)
[0x00000] 
  at System.Resources.ResourceManager.InternalGetResourceSet
(System.Globalization.CultureInfo culture, Boolean createI
fNotExists, Boolean tryParents) [0x00000] 
  at System.Resources.ResourceManager.InternalGetResourceSet
(System.Globalization.CultureInfo culture, Boolean createI
fNotExists, Boolean tryParents) [0x00000] 
  at System.Resources.ResourceManager.InternalGetResourceSet
(System.Globalization.CultureInfo culture, Boolean createI
fNotExists, Boolean tryParents) [0x00000] 
  at System.Resources.ResourceManager.GetObject (System.String name,
System.Globalization.CultureInfo culture) [0x00000
] 
  at System.Resources.ResourceManager.GetObject (System.String name) [0x00000] 
  at ChessBoardCtrl.ChessBoard.InitializeComponent () [0x00000] 
  at ChessBoardCtrl.ChessBoard..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) ChessBoardCtrl.ChessBoard:.ctor ()
  at ChessDemo.ChessDisplay.InitializeComponent () [0x00000] 
  at ChessDemo.ChessDisplay..ctor () [0x00000] 
  at (wrapper remoting-invoke-with-check) ChessDemo.ChessDisplay:.ctor ()
  at ChessDemo.ChessDisplay.Main () [0x00000]


Expected Results:
it should start up.


How often does this happen? 
Every time.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list