Bug 13237 - Mono version 3.0.10 trigger .net application failed
Summary: Mono version 3.0.10 trigger .net application failed
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: unspecified
Hardware: PC Windows
: Lowest normal
Target Milestone: Community
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-07-13 23:46 UTC by maodage2005
Modified: 2017-09-01 11:56 UTC (History)
2 users (show)

Tags: mono-community
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 13237 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
NEW

Description maodage2005 2013-07-13 23:46:50 UTC
i have create a very simple application with .net 2.0 c#.
run the following command just want to trigger the application by Mono:
"c:\Program Files (x86)\Mono-3.0.10\bin\mono.exe" --debug test2.exe

but failed with following log:

Unhandled Exception:
System.TypeInitializationException: An exception was thrown by the type initiali
zer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.Type
InitializationException: An exception was thrown by the type initializer for Sys
tem.Windows.Forms.ThemeEngine ---> System.TypeInitializationException: An except
ion was thrown by the type initializer for System.Windows.Forms.ThemeWin32Classi
c ---> System.TypeInitializationException: An exception was thrown by the type i
nitializer for System.Drawing.KnownColors ---> System.TypeInitializationExceptio
n: An exception was thrown by the type initializer for System.Drawing.GDIPlus --
-> System.DllNotFoundException: /tmp/install/lib/libgdiplus.so
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,S
ystem.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x000cc] in C:\cygwin\sources\mono\mcs\cl
ass\System.Drawing\System.Drawing\gdipFunctions.cs:127
  --- End of inner exception stack trace ---
  at System.Drawing.KnownColors..cctor () [0x0001a] in C:\cygwin\sources\mono\mc
s\class\System.Drawing\System.Drawing\KnownColors.cs:225
  --- End of inner exception stack trace ---
  at System.Drawing.Color.get_Black () [0x00000] in C:\cygwin\sources\mono\mcs\c
lass\System.Drawing\System.Drawing\Color.cs:483
  at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000] in C:\cygwin\sou
rces\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ThemeWin32Classic
.cs:52
  --- End of inner exception stack trace ---
  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in C:\cygwin\sour
ces\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ThemeVisualStyles.
cs:45
  at System.Windows.Forms.ThemeEngine..cctor () [0x0002d] in C:\cygwin\sources\m
ono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ThemeEngine.cs:49
  --- End of inner exception stack trace ---
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x0
0000] in C:\cygwin\sources\mono\mcs\class\Managed.Windows.Forms\System.Windows.F
orms\SystemInformation.cs:317
  at System.Windows.Forms.Control..ctor () [0x000e3] in C:\cygwin\sources\mono\m
cs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:900
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000]
 in C:\cygwin\sources\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\
WindowsFormsSynchronizationContext.cs:45
  --- End of inner exception stack trace ---
  at System.Windows.Forms.Control..ctor () [0x00014] in C:\cygwin\sources\mono\m
cs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:871
  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in C:\cygwin\sour
ces\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ScrollableControl.
cs:157
  at System.Windows.Forms.ContainerControl..ctor () [0x0000e] in C:\cygwin\sourc
es\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ContainerControl.cs
:54
  at System.Windows.Forms.Form..ctor () [0x00012] in C:\cygwin\sources\mono\mcs\
class\Managed.Windows.Forms\System.Windows.Forms\Form.cs:387
  at test2.Form1..ctor () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) test2.Form1:.ctor ()
  at test2.Program.Main () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An except
ion was thrown by the type initializer for System.Windows.Forms.WindowsFormsSync
hronizationContext ---> System.TypeInitializationException: An exception was thr
own by the type initializer for System.Windows.Forms.ThemeEngine ---> System.Typ
eInitializationException: An exception was thrown by the type initializer for Sy
stem.Windows.Forms.ThemeWin32Classic ---> System.TypeInitializationException: An
 exception was thrown by the type initializer for System.Drawing.KnownColors ---
> System.TypeInitializationException: An exception was thrown by the type initia
lizer for System.Drawing.GDIPlus ---> System.DllNotFoundException: /tmp/install/
lib/libgdiplus.so
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,S
ystem.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
  at System.Drawing.GDIPlus..cctor () [0x000cc] in C:\cygwin\sources\mono\mcs\cl
ass\System.Drawing\System.Drawing\gdipFunctions.cs:127
  --- End of inner exception stack trace ---
  at System.Drawing.KnownColors..cctor () [0x0001a] in C:\cygwin\sources\mono\mc
s\class\System.Drawing\System.Drawing\KnownColors.cs:225
  --- End of inner exception stack trace ---
  at System.Drawing.Color.get_Black () [0x00000] in C:\cygwin\sources\mono\mcs\c
lass\System.Drawing\System.Drawing\Color.cs:483
  at System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000] in C:\cygwin\sou
rces\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ThemeWin32Classic
.cs:52
  --- End of inner exception stack trace ---
  at System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] in C:\cygwin\sour
ces\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ThemeVisualStyles.
cs:45
  at System.Windows.Forms.ThemeEngine..cctor () [0x0002d] in C:\cygwin\sources\m
ono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ThemeEngine.cs:49
  --- End of inner exception stack trace ---
  at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x0
0000] in C:\cygwin\sources\mono\mcs\class\Managed.Windows.Forms\System.Windows.F
orms\SystemInformation.cs:317
  at System.Windows.Forms.Control..ctor () [0x000e3] in C:\cygwin\sources\mono\m
cs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:900
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor ()
  at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000]
 in C:\cygwin\sources\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\
WindowsFormsSynchronizationContext.cs:45
  --- End of inner exception stack trace ---
  at System.Windows.Forms.Control..ctor () [0x00014] in C:\cygwin\sources\mono\m
cs\class\Managed.Windows.Forms\System.Windows.Forms\Control.cs:871
  at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in C:\cygwin\sour
ces\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ScrollableControl.
cs:157
  at System.Windows.Forms.ContainerControl..ctor () [0x0000e] in C:\cygwin\sourc
es\mono\mcs\class\Managed.Windows.Forms\System.Windows.Forms\ContainerControl.cs
:54
  at System.Windows.Forms.Form..ctor () [0x00012] in C:\cygwin\sources\mono\mcs\
class\Managed.Windows.Forms\System.Windows.Forms\Form.cs:387
  at test2.Form1..ctor () [0x00000] in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) test2.Form1:.ctor ()
  at test2.Program.Main () [0x00000] in <filename unknown>:0