[MonoDevelop] Missing msvcrt?

Evil Jay monodevelop-list at eternaldusk.com
Sun Sep 30 13:31:59 EDT 2007


*Sigh*...  I'm still having issues.  I've been beating my head against
the following problem for hours.  If someone here can point me in the
right direction, I would really appreciate the help.

SVN MD was crashing a lot on me, particularly when compiling my test
app.  Since I had run into so many issues while originally building SVN,
I didn't trust that everything in MD was built/installed right.  So
decided to revert back to a clean version of the official K/Ubuntu
packages to see if my test app would compile under that (0.14) version.

Long story short:  I did a "sudo make uninstall" on all the packages I
had installed (MD, Mono, GTK#, Gecko#, Monodoc, gnome#), deleted the
monodevelop and mono libraries hanging around in usr/lib/ and
usr/local/lib, deleted my ~/.config/MonoDevelop directory, and installed
the distro packages on what I thought was a clean system.

The thing is, I can't get the distro packages to start.  The most
immediate symptom is this.


    evil at pluto:~$ monodevelop
    Add-in error (MonoDevelop.Projects,0.14.0): Add-in could not be loaded
    System.Reflection.TargetInvocationException: Exception has been
    thrown by the target of an invocation. --->
    System.TypeInitializationException: An exception was thrown by the
    type initializer for MonoDevelop.Core.GettextCatalog --->
    System.DllNotFoundException: msvcrt
      at (wrapper managed-to-native) Mono.Unix.Native.Stdlib:free (intptr)
      at Mono.Unix.UnixMarshal.FreeHeap (IntPtr ptr) [0x00000]
      at Mono.Unix.Catalog.Init (System.String package, System.String
    localedir) [0x00000]
      at MonoDevelop.Core.GettextCatalog..cctor () [0x00000] --- End of
    inner exception stack trace ---

So, I sudo uninstalled mono and monodevelop and autoremoved the
supporting libs, did an updatedb, did a locate to find mono* and
examined each entry.  Not finding any old items (except some /etc/mono
directories which I then deleted), I re-installed the monodevelop
packages again.  But, when I run it I always get the same error.

I tried directing the --trace output to a file, but I can't find
anything in the trace that gives me any better indication of what the
true cause is.  My immediate hunch is that something is hanging around
from the SVN Mono, but I'm damned if I can find what that is.

These are the lines in the trace that look to be the first indication of
problems (line 2,518,341!)

    Mono.Unix.Catalog:MarshalStrings
    (string,intptr&,string,intptr&,string,intptr&)
    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    ENTER: (wrapper managed-to-native) Mono.Unix.Catalog:bindtextdomain
    (intptr,intptr)(0xe5b3a0, 0xe5b6a0, )
    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    ENTER: (wrapper managed-to-native)
    System.Object:__icall_wrapper_mono_object_new_fast (intptr)(0xe6eaa0, )
    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    LEAVE: (wrapper managed-to-native)
    System.Object:__icall_wrapper_mono_object_new_fast
    (intptr)[System.DllNotFoundException:0x2aaaabe65070]
    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
    ENTER: System.DllNotFoundException:.ctor
    ()(this:0x2aaaabe65070[System.DllNotFoundException MonoDevelop.exe], )

Web searches turned up someone on this list reporting a similar problem
in February, but there was no solution in the thread.  Additional
searches against it possibly being a problem with my (what I thought was
now standard) mono installation.  If Jensen's still reading this
list/using monodevelop, I'd really be grateful to know how he got around
the issue.

Here's the full error when running from the command line.

    evil at pluto:~$ monodevelop
    Add-in error (MonoDevelop.Projects,0.14.0): Add-in could not be loaded
    System.Reflection.TargetInvocationException: Exception has been
    thrown by the target of an invocation. --->
    System.TypeInitializationException: An exception was thrown by the
    type initializer for MonoDevelop.Core.GettextCatalog --->
    System.DllNotFoundException: msvcrt
      at (wrapper managed-to-native) Mono.Unix.Native.Stdlib:free (intptr)
      at Mono.Unix.UnixMarshal.FreeHeap (IntPtr ptr) [0x00000]
      at Mono.Unix.Catalog.Init (System.String package, System.String
    localedir) [0x00000]
      at MonoDevelop.Core.GettextCatalog..cctor () [0x00000] --- End of
    inner exception stack trace ---

      at <0x00000> <unknown method>
      at MonoDevelop.Core.ServiceManager.FetchService (System.Type
    serviceType) [0x00000]
      at MonoDevelop.Core.ServiceManager.GetService (System.Type
    serviceType) [0x00000]
      at MonoDevelop.Projects.LanguageService..ctor () [0x00000]
      at <0x00000> <unknown method>
      at (wrapper managed-to-native)
    System.Reflection.MonoCMethod:InternalInvoke (object,object[])
      at System.Reflection.MonoCMethod.Invoke (System.Object obj,
    BindingFlags invokeAttr, System.Reflection.Binder binder,
    System.Object[] parameters, System.Globalization.CultureInfo
    culture) [0x00000] --- End of inner exception stack trace ---

      at System.Reflection.MonoCMethod.Invoke (System.Object obj,
    BindingFlags invokeAttr, System.Reflection.Binder binder,
    System.Object[] parameters, System.Globalization.CultureInfo
    culture) [0x00000]
      at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr,
    System.Reflection.Binder binder, System.Object[] parameters,
    System.Globalization.CultureInfo culture) [0x00000]
      at System.Reflection.ConstructorInfo.Invoke (System.Object[]
    parameters) [0x00000]
      at System.Activator.CreateInstance (System.Type type, Boolean
    nonPublic) [0x00000]
      at System.Activator.CreateInstance (System.Type type) [0x00000]
      at Mono.Addins.TypeExtensionNode.CreateInstance () [0x00000]
      at MonoDevelop.Core.Addins.ServiceExtensionNode.OnAddinLoaded ()
    [0x00000]
      at Mono.Addins.TreeNode.NotifyAddinLoaded
    (Mono.Addins.RuntimeAddin ad, Boolean recursive) [0x00000]
      at Mono.Addins.TreeNode.NotifyAddinLoaded
    (Mono.Addins.RuntimeAddin ad, Boolean recursive) [0x00000]
      at Mono.Addins.TreeNode.NotifyAddinLoaded
    (Mono.Addins.RuntimeAddin ad, Boolean recursive) [0x00000]
      at Mono.Addins.TreeNode.NotifyAddinLoaded
    (Mono.Addins.RuntimeAddin ad, Boolean recursive) [0x00000]
      at Mono.Addins.ExtensionContext.NotifyAddinLoaded
    (Mono.Addins.RuntimeAddin ad) [0x00000]
      at Mono.Addins.AddinSessionService.InsertAddin (IProgressStatus
    statusMonitor, Mono.Addins.Addin iad) [0x00000]

    Unhandled Exception: System.InvalidOperationException: Add-in
    'MonoDevelop.Ide,0.14.0' could not be loaded.
      at Mono.Addins.ExtensionNode.get_Addin () [0x00000]
      at MonoDevelop.Core.AddIns.ApplicationExtensionNode.CreateInstance
    () [0x00000]
      at MonoDevelop.Core.ApplicationService.StartApplication
    (System.String appId, System.String[] parameters) [0x00000]
      at MonoDevelop.Startup.SharpDevelopMain.Main (System.String[]
    args) [0x00000]




More information about the Monodevelop-list mailing list