I grabbed the Clojure NuGet package 1.5.0.2, and when I new up my clojure
namespace and execute a method, I get a TypeInitializationException. It
seems to be referencing Clojure 1.4.0, but shouldn't it be targeting 1.5.0?
namespace.clj:
(ns my.namespace
> (:gen-class
> :methods [[testing [int] int]]))
> (defn -testing [x] (* x 2))
Program.cs:
using System;
> using System.Collections.Generic;
> using System.Linq;
> using System.Text;
> using System.Threading.Tasks;
> namespace ConsoleApplication1
> {
> class Program
> {
> static void Main(string[] args)
> {
> var namespace = new my.namespace();
> namespace.testing(2);
> Console.ReadLine();
> }
> }
> }
>
> System.TypeInitializationException was unhandled
> HResult=-2146233036
> Message=The type initializer for 'my.namespace' threw an exception.
> Source=log-analysis
> TypeName=my.namespace
> StackTrace:
> at my.namespace..ctor()
> at ConsoleApplication1.Program.Main(String[] args) in
> c:\Users\jjelinek\Documents\Visual Studio
> 2012\Projects\log-analysis\ConsoleApplication1\Program.cs:line 13
> at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly,
> String[] args)
> at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
> assemblySecurity, String[] args)
> at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
> at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
> at System.Threading.ExecutionContext.RunInternal(ExecutionContext
> executionContext, ContextCallback callback, Object state, Boolean
> preserveSyncCtx)
> at System.Threading.ExecutionContext.Run(ExecutionContext
> executionContext, ContextCallback callback, Object state, Boolean
> preserveSyncCtx)
> at System.Threading.ExecutionContext.Run(ExecutionContext
> executionContext, ContextCallback callback, Object state)
> at System.Threading.ThreadHelper.ThreadStart()
> InnerException: System.IO.FileLoadException
> HResult=-2146234304
> Message=Could not load file or assembly 'Clojure, Version=1.4.0.0,
> Culture=neutral, PublicKeyToken=d0a477b1756ef34d' or one of its
> dependencies. The located assembly's manifest definition does not match the
> assembly reference. (Exception from HRESULT: 0x80131040)
> Source=log-analysis
> FileName=Clojure, Version=1.4.0.0, Culture=neutral,
> PublicKeyToken=d0a477b1756ef34d
> FusionLog==== Pre-bind state information ===
> LOG: DisplayName = Clojure, Version=1.4.0.0, Culture=neutral,
> PublicKeyToken=d0a477b1756ef34d
> (Fully-specified)
> LOG: Appbase = file:///C:/Users/jjelinek/documents/visual studio
> 2012/Projects/log-analysis/ConsoleApplication1/bin/Debug/
> LOG: Initial PrivatePath = NULL
> Calling assembly : log-analysis, Version=0.0.0.0, Culture=neutral,
> PublicKeyToken=null.
> ===
> LOG: This bind starts in default load context.
> LOG: Using application configuration file:
> C:\Users\jjelinek\documents\visual studio
> 2012\Projects\log-analysis\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe.Config
> LOG: Using host configuration file:
> LOG: Using machine configuration file from
> C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
> LOG: Post-policy reference: Clojure, Version=1.4.0.0, Culture=neutral,
> PublicKeyToken=d0a477b1756ef34d
> LOG: Attempting download of new URL
> file:///C:/Users/jjelinek/documents/visual studio
> 2012/Projects/log-analysis/ConsoleApplication1/bin/Debug/Clojure.DLL.
> WRN: Comparing the assembly name resulted in the mismatch: Minor Version
> ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing
> terminated.
> StackTrace:
> at my.namespace..cctor()
> InnerException:
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.