2015-04-28 193 views
1

我刚刚安装了MonoXQuartz的最新版本。我下载了Keepass-2.29便携版。当我尝试运行它,我得到以下异常:如何获得在MAC OS X上运行的KeePass 2.X

$单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。框架/版本在(包装管理到本机)System.Drawing.GDIPlus/3.12.1/LIB/libgdiplus.dylib :GdiplusStartup (ULONG &,System.Drawing.GdiplusStartupInput &,System.Drawing.GdiplusStartupOutput &) 在System.Drawing.GDIPlus..cctor()[0x00000]中:0 ---内部异常堆栈跟踪结束---在System.Drawing.KnownColors..cctor()[0x00000]中:0 - - 内部例外的结束在System.Drawing.Color.get_Black()[0x00000]处:0
at System.Windows.Forms.ThemeWin32Classic..cctor()[0x00000] in :0 --- End of inner异常堆栈跟踪---
at System.Windows.Forms.ThemeVisualStyles..ctor()[0x00000] in :0 at System.Windows.Forms.ThemeEngine..cctor() [0x00000] in:0 - - 内部异常堆栈结束 trace --- at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined() [0x00000] in:0 at System.Windows.Forms.Control..ctor()[0x00000] in: 0 at(wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor()at Syste m.Windows.Forms.WindowsFormsSynchronizationContext..cctor() [0x00000] in:0 ---内部异常堆栈结束 trace ---在System.Windows.Forms.Control..ctor()[0x00000]在 :0 at System.Windows.Forms.ScrollableControl..ctor()[0x00000] in:0 at System.Windows.Forms.ContainerControl..ctor() [0x00000] in:0 at System.Windows.Forms。 Form.ctor()[0x00000] in:0
at KeePass.Forms.MainForm..ctor()[0x00000] in:0
at(wrapper remoting-invoke-with-check)KeePass.Forms.MainForm: .ector ()at KeePass.Program.Main(System.String [] args)[0x00000] in :0

未处理的异常:System.TypeInitializationException:例外 由类型初始化抛出System.Drawing.GDIPlus ---> System.DllNotFoundException: /Library/Frameworks/Mono.framework/Versions/3.12.1/lib /libgdiplus.dylib at(wrapper managed-to-native)System.Drawing.GDIPlus:GdiplusStartup (ulong &,System.Drawing.GdiplusStartupInput &,System.Drawing。GdiplusStartupOutput &) at System.Drawing.GDIPlus..cctor()[0x00000] in:0 ---内部异常堆栈跟踪结束---在System.Drawing.KnownColors..cctor()[0x00000]中: 0

需要一些更多的指导这里是什么指示和如何着手解决这个问题。

回答

0

看起来像你的单声道安装不完整。你安装了MRE还是MDK?

您是通过http://mono-project.com的包装还是通过冲泡来安装的?

如果您安装了MRE或通过brew安装,请尝试从mono网站安装MDK。否则,请尝试重新安装。

+0

我安装并重新安装了MDK,但错误仍然存​​在。 – user252816

+0

.dylib文件是否存在? – jstedfast

+0

您能否详细说明一下。我不知道你指的是什么文件。 – user252816

1

KeePass 2.X便携版在Mac中不稳定。在某些情况下,读操作可以工作,但不能添加或更新现有的keePass数据库。

替代KeePass 2.x for Mac OS X - 也是不稳定的。它仍然在2.23版本,而keePass现在是2.29。随着最新的Mono和XQuartz,这个keePass包会抛出很多异常。

Best working version is keePassX。根据我个人的使用情况,这个版本看起来比其他现有的适用于Mac的KeePass软件包更好更稳定。

+2

KeePassX现已终止(请参阅https://www.keepassx.org/news/2015/12/533)。它与自制酒桶安装:“酿酒桶安装keepassx” –