简体   繁体   English

启动时发生Monodevelop异常:TypeInitializationException

[英]Monodevelop exception at startup: TypeInitializationException

I recently updated mono to the latest version 4.0.2 and ever since, Monodevelop won't start. 我最近将mono更新到了最新版本4.0.2,从那时起,Monodevelop就无法启动。

I tried to purge all packages associated with mono and monodevelop 我试图清除与mono和monodevelop相关的所有软件包

  • mono-complete 单完成
  • mono-runtime 单运行时
  • monodevelop 单显影

I remembered, that I had tried to compile mono from source, quite some time ago. 我记得,很早以前我曾尝试从源代码编译mono。 Therefore I manually removed all folders named mono from 因此,我从中手动删除了所有名为mono的文件夹。

  • usr/bin 的usr / bin
  • usr/local/bin 的usr / local / bin
  • usr/lib 的usr / lib
  • usr/local/lib 的usr / local / lib
  • usr/etc 的usr / etc
  • usr/local/lib 的usr / local / lib

After that, I was rather sure that mono was removed completely. 之后,我相当确定单声道已完全删除。 I tried to find remains with mlocate and whereis but the system seemed clean. 我试图找到mlocate和whereis的遗骸,但系统看起来很干净。 Then I installed - mono-complete - monodevelop 然后我安装了-mono-complete-monodevelop

Monodevelop still crashes. Monodevelop仍然崩溃。

This is the output of monodevelop: http://pastebin.com/AmGsXB4M 这是monodevelop的输出: http : //pastebin.com/AmGsXB4M

Here is a more detailed version: http://pastebin.com/YB0rkBgV 这是更详细的版本: http : //pastebin.com/YB0rkBgV

Mono is the latest version: Mono是最新版本:

mono --version

Mono JIT compiler version 4.0.2 (Stable 4.0.2.5/c99aa0c Wed Jun 24 10:04:37 UTC 2015)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug 
    LLVM:          supported, not enabled.
    GC:            sgen

The monodevelop version should be the latest, too. monodevelop版本也应该是最新的。 But I can't check since 但是我不能检查

monodevelop --version

provokes the same crash. 引发同样的崩溃。

My os is ubuntu 15.04 64-bit. 我的操作系统是ubuntu 15.04 64位。

UPDATE: 更新:

The monodevelop version is 5.9.4 http://pastebin.com/EkL1wnH7 monodevelop版本为5.9.4 http://pastebin.com/EkL1wnH7

[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for MonoDevelop.Core.LoggingService ---> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <runtime> (/usr/lib/monodevelop/bin/MonoDevelop.exe.config line 3)

It appears there is a mismatch in your install. 看来您的安装不匹配。 If you look at the debug output in provided, you loading assemblies from /usr/local/lib and /usr/lib. 如果查看提供的调试输出,则从/ usr / local / lib和/ usr / lib加载程序集。

I would look at the mono configs that it is picking up and might sure that it not finding an old 3.x dll map file: 我将查看它正在拾取的单声道配置,并可能确定它没有找到旧的3.x dll映射文件:

Mono: Config attempting to parse: '/usr/local/etc/mono/config'.
Mono: Config attempting to parse: '/home/lars/.mono/config'.

A 'clean' monodevelop 5.9.x startup on Ubuntu 15.04 : gist Ubuntu 15.04上的``干净''monodevelop 5.9.x启动: 要点

A monodevelop.exe.config 5.9.x file : gist monodevelop.exe.config 5.9.x文件: 要点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 创建 object 时出现 TypeInitializationException 异常 - TypeInitializationException exception on creating an object “TypeInitializationException 未处理”异常 c# - "TypeInitializationException was unhandled" exception c# 未处理的异常:system.typeInitializationException - unhandled exception: system.typeInitializationException 未处理的类型异常(System.TypeInitializationException) - Unhandled Type Exception(System.TypeInitializationException) TypeInitializationException: &#39; 的类型初始值设定项<Module> &#39;抛出异常 - TypeInitializationException: The type initializer for '<Module>' threw an exception Unity制作的WP8.1应用在启动时因TypeInitializationException崩溃 - Unity-made WP8.1 app crashes at startup with TypeInitializationException System.TypeInitializationException:&#39;类型初始值设定项引发了异常。 - System.TypeInitializationException: 'The type initializer threw an exception.' 在未知模块中发生了类型为&#39;System.TypeInitializationException&#39;的未处理异常 - Unhandled exception of type 'System.TypeInitializationException' occurred in Unknown Module Windows 8 C#-Parse.ParseClient引发异常&#39;TypeInitializationException&#39; - Windows 8 C# - Parse.ParseClient throwing exception 'TypeInitializationException' 一些机器上的C#运行时异常System.TypeInitializationException - C# Runtime Exception System.TypeInitializationException on some machines
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM