【问题标题】:How to get KeePass 2.X running on MAC OS X如何让 KeePass 2.X 在 MAC OS X 上运行
【发布时间】:2015-07-07 12:16:32
【问题描述】:

我刚刚安装了最新版本的MonoXQuartz。我下载了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

这里需要更多关于这表明什么以及如何解决这个问题的指导。

【问题讨论】:

    标签: .net macos mono keepass


    【解决方案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 包要好得多且稳定。

    【讨论】:

    • KeePassX 现在是最终版本(请参阅 keepassx.org/news/2015/12/533)。它与自制酒桶一起安装:“brew cask install keepassx”
    【解决方案2】:

    您的 Mono 安装似乎不完整。你安装的是 MRE 还是 MDK?

    您是通过 http://mono-project.com 的 pkg 还是通过 brew 安装的?

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

    【讨论】:

    • 我安装并重新安装了MDK,但错误仍然存​​在。
    • .dylib 文件是否存在?
    • 你能详细说明一下吗?我不知道你指的是什么文件。
    • 加载失败的DLL:/Library/Frameworks/Mono.framework/Versions/3.12.1/lib/libgdiplus.dylib
    猜你喜欢
    • 2014-11-08
    • 2012-02-12
    • 1970-01-01
    • 1970-01-01
    • 2012-07-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多