【发布时间】:2015-07-07 12:16:32
【问题描述】:
我刚刚安装了最新版本的Mono 和XQuartz。我下载了Keepass-2.29便携版。当我尝试运行它时,我得到以下异常:
$ mono KeePass.exe System.TypeInitializationException:异常 被类型初始化器抛出 System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException:异常被抛出 System.Windows.Forms.ThemeEngine 的类型初始化程序---> System.TypeInitializationException:异常被抛出 System.Windows.Forms.ThemeWin32Classic 的类型初始化程序---> System.TypeInitializationException:异常被抛出 System.Drawing.KnownColors 的类型初始化程序---> System.TypeInitializationException:异常被抛出 System.Drawing.GDIPlus 的类型初始化器 ---> System.DllNotFoundException: /Library/Frameworks/Mono.framework/Versions/3.12.1/lib/libgdiplus.dylib 在(包装器托管到本机)System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) 在 System.Drawing.GDIPlus..cctor () [0x00000] in :0 --- 内部异常堆栈跟踪结束 --- 在 System.Drawing.KnownColors..cctor () [0x00000] in :0 --- 内部异常堆栈跟踪结束 --- 在 System.Drawing.Color.get_Black () [0x00000] in :0
在 System.Windows.Forms.ThemeWin32Classic..cctor () [0x00000] 中 :0 --- 内部异常堆栈跟踪结束 ---
在 System.Windows.Forms.ThemeVisualStyles..ctor () [0x00000] 中 :0 在 System.Windows.Forms.ThemeEngine..cctor () [0x00000] in :0 --- 内部异常堆栈结束 跟踪---在 System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00000] 在 :0 处 System.Windows.Forms.Control..ctor () [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor() 在 System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in :0 --- 内部异常堆栈结束 跟踪 --- 在 System.Windows.Forms.Control..ctor () [0x00000] 中 :0 在 System.Windows.Forms.ScrollableControl..ctor () [0x00000] in :0 在 System.Windows.Forms.ContainerControl..ctor () [0x00000] 在 :0 处 System.Windows.Forms.Form..ctor () [0x00000] in :0
在 KeePass.Forms.MainForm..ctor () [0x00000] in :0
在 (wrapper remoting-invoke-with-check) KeePass.Forms.MainForm:.ctor () 在 KeePass.Program.Main (System.String[] args) [0x00000] 中 :0未处理的异常:System.TypeInitializationException:异常 由 System.Drawing.GDIPlus 的类型初始化程序抛出 ---> System.DllNotFoundException: /Library/Frameworks/Mono.framework/Versions/3.12.1/lib/libgdiplus.dylib 在(包装器托管到本机)System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) 在 System.Drawing.GDIPlus..cctor () [0x00000] in :0 --- 内部异常堆栈跟踪结束 --- 在 System.Drawing.KnownColors..cctor () [0x00000] in :0
这里需要更多关于这表明什么以及如何解决这个问题的指导。
【问题讨论】: