[Mono-dev] Chiron.exe on mono crashes with System.TypeLoadException

Jimmy Schementi jschementi at gmail.com
Tue Jul 21 03:28:13 EDT 2009

<miguel at novell.com> wrote:

> Hello,

Hey Miguel!

 I'm working out some kinks with DLR running on Mono and Moonlight, and I
>> found that Chiron.exe no longer runs against Mono. It works against 2.2, but
>> not 2.4:
>> rupert at linux:~/ironruby/Merlin/Main/Bin/Silverlight Release> mono
>> Chiron.exe
>> ** (Chiron.exe:18505): WARNING **: The class
>> System.Diagnostics.ProcessStartInfo could not be loaded, used in System,
>> Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089
> Those errors indicate a corrupt version of Mono on your system.   Perhaps
> you set MONO_PATH or MONO_GAC_PATH or the system PATH?

I'm running this from the VMware Mono image from
$MONO_PATH and $MONO_GAC_PATH are not set, and $PATH appears normal.

> What happens when you try to build a sample C# program like this:
> mcs -pkg:dotnet foo.cs

Builds and runs fine:

rupert at linux:~> cat foo.cs
public class Foo {
  public static int Main() {
    System.Console.WriteLine("In Foo.Main");
    return 0;
rupert at linux:~> mcs -pkg:dotnet foo.cs
rupert at linux:~> mono foo.exe
In Foo.Main


I just built Chiron with xbuild, and the build finished successfully, but
running "mono Chiron.exe" gives the exact same error as running the binary
built with msbuild. I noticed that Chiron's App.config was not automatically
copied to the build location, is that a known issue? Anyway, here's the
build log in case you're curious:

rupert at linux:~/Desktop/ironruby/Merlin/Main/Hosts/SilverLight/Chiron> xbuild
XBuild Engine Version 0.1
Mono, Version
Copyright (C) Marek Sieradzki 2005. All rights reserved.

Build started 7/21/2009 12:29:02 AM.
(Build target(s)):

Target PrepareForBuild:
Configuration: Debug Platform: AnyCPU
Created directory "obj//Debug/"

Target ResolveAssemblyReferences:

Target CopyFilesMarkedCopyLocal:

Target AssignTargetPaths:

Target SplitResourcesByCulture:

Target CreateManifestResourceNames:

Target CopyNonResxEmbeddedResources:
Copying file from
Copying file from

Target GenerateResources:

Target GenerateSatelliteAssemblies:
Skipping target "GenerateSatelliteAssemblies" because its outputs are

Target CoreCompile:
Tool /usr/bin/gmcs execution started with arguments: /noconfig /debug:full
/delaysign+ /debug+ /optimize- /out:obj//Debug/Chiron.exe
/resource:obj//Debug/Chiron.sl.png /resource:obj//Debug/Chiron.slx.png
AppManifestTemplate.cs Chiron.cs Crc32.cs HtmlFormatter.cs
HttpRequestData.cs HttpSocket.cs LanguageInfo.cs XapHttpHandler.cs
LCA_RESTRICTED/Zip.cs MimeTypeSection.cs Properties/AssemblyInfo.cs
HttpServer.cs XapBuilder.cs /target:exe /unsafe- /define:DEBUG;TRACE
/reference:/usr/lib/mono/2.0/System.Xml.dll /warn:4

Target GetCopyToOutputDirectoryItems:

Target DeployOutputFiles:
Copying file from
to '/home/rupert/Desktop/ironruby/Merlin/Main/Bin/Silverlight
Copying file from
to '/home/rupert/Desktop/ironruby/Merlin/Main/Bin/Silverlight

Build succeeded.
 0 Warning(s)
 0 Error(s)

Time Elapsed 00:00:03.2143200

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090721/f045b0e2/attachment.html 

More information about the Mono-devel-list mailing list