[Mono-dev] Chiron.exe on mono 2.4.2.1 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=2.0.0.0, 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
http://ftp.novell.com/pub/mono/appliance/2.4.2.1/Mono-2.4.2.1-vmx.zip.
$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

Miguel.
>

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
Chiron.csproj
XBuild Engine Version 0.1
Mono, Version 2.4.2.1
Copyright (C) Marek Sieradzki 2005. All rights reserved.

Build started 7/21/2009 12:29:02 AM.
__________________________________________________
Project
"/home/rupert/Desktop/ironruby/Merlin/Main/Hosts/SilverLight/Chiron/Chiron.csproj"
(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
'/home/rupert/Desktop/ironruby/Merlin/Main/Hosts/SilverLight/Chiron/sl.png'
to
'/home/rupert/Desktop/ironruby/Merlin/Main/Hosts/SilverLight/Chiron/obj/Debug/Chiron.sl.png'
Copying file from
'/home/rupert/Desktop/ironruby/Merlin/Main/Hosts/SilverLight/Chiron/slx.png'
to
'/home/rupert/Desktop/ironruby/Merlin/Main/Hosts/SilverLight/Chiron/obj/Debug/Chiron.slx.png'

Target GenerateResources:

Target GenerateSatelliteAssemblies:
Skipping target "GenerateSatelliteAssemblies" because its outputs are
up-to-date.

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.dll
/reference:/usr/lib/mono/2.0/System.Configuration.dll
/reference:/usr/lib/mono/2.0/System.Core.dll
/reference:/usr/lib/mono/2.0/System.Data.dll
/reference:/usr/lib/mono/2.0/System.Web.dll
/reference:/usr/lib/mono/2.0/System.Web.Extensions.dll
/reference:/usr/lib/mono/2.0/System.Xml.dll /warn:4

Target GetCopyToOutputDirectoryItems:

Target DeployOutputFiles:
Copying file from
'/home/rupert/Desktop/ironruby/Merlin/Main/Hosts/SilverLight/Chiron/obj/Debug/Chiron.exe.mdb'
to '/home/rupert/Desktop/ironruby/Merlin/Main/Bin/Silverlight
Debug/Chiron.exe.mdb'
Copying file from
'/home/rupert/Desktop/ironruby/Merlin/Main/Hosts/SilverLight/Chiron/obj/Debug/Chiron.exe'
to '/home/rupert/Desktop/ironruby/Merlin/Main/Bin/Silverlight
Debug/Chiron.exe'

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

Time Elapsed 00:00:03.2143200

~Jimmy
-------------- 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