Bugzilla – Bug 710978
Could not load file or assembly 'FSharp.Compiler, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a19089b1c74d0809' or one of its dependencies
Last modified: 2011-08-08 12:19:50 UTC
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.107 Safari/535.1 Since upgrading to Mono 2.10.3 on Mac OS-X, FSharp programs have started failing. Best example is trying to start unit tests : System.Exception: An exception was thrown while dispatching a method call in the UI thread. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: oops! System.TypeInitializationException: An exception was thrown by the type initializer for FSharpCompilerServerShared ---> System.TypeInitializationException: An exception was thrown by the type initializer for <StartupCode$FSharpBinding>.$FSharpCompiler ---> System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Compiler, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a19089b1c74d0809' or one of its dependencies. The system cannot find the file specified. Reproducible: Always Steps to Reproduce: 1. Write simple F# function 2. Write unit test in C# calling this function 3. Run unit test Actual Results: System.Exception: An exception was thrown while dispatching a method call in the UI thread. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Exception: oops! System.TypeInitializationException: An exception was thrown by the type initializer for FSharpCompilerServerShared ---> System.TypeInitializationException: An exception was thrown by the type initializer for <StartupCode$FSharpBinding>.$FSharpCompiler ---> System.IO.FileNotFoundException: Could not load file or assembly 'FSharp.Compiler, Version=2.0.0.0, Culture=neutral, PublicKeyToken=a19089b1c74d0809' or one of its dependencies. The system cannot find the file specified.