简体   繁体   中英

Monodevelop exception at startup: TypeInitializationException

I recently updated mono to the latest version 4.0.2 and ever since, Monodevelop won't start.

I tried to purge all packages associated with mono and monodevelop

  • mono-complete
  • mono-runtime
  • monodevelop

I remembered, that I had tried to compile mono from source, quite some time ago. Therefore I manually removed all folders named mono from

  • usr/bin
  • usr/local/bin
  • usr/lib
  • usr/local/lib
  • usr/etc
  • 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. Then I installed - mono-complete - monodevelop

Monodevelop still crashes.

This is the output of monodevelop: http://pastebin.com/AmGsXB4M

Here is a more detailed version: http://pastebin.com/YB0rkBgV

Mono is the latest version:

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. But I can't check since

monodevelop --version

provokes the same crash.

My os is ubuntu 15.04 64-bit.

UPDATE:

The monodevelop version is 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.

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:

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

A monodevelop.exe.config 5.9.x file : gist

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM