Hi,

I upgraded a .net 4.0 project that was working fine to the latest packages 
I could get from nuget:

  <package id="Castle.Core" version="3.2.0" targetFramework="net40" />
  <package id="Castle.Windsor" version="3.2.1" targetFramework="net40" />

The project builds and runs fine from the command line.  I have VS 2012 
installed, so the 4.5 runtime exists on my machine too, however the project 
is 4.0 and I am using only 4.0 binaries.

I then went to run the executable on a machine that did not have the 4.5 
runtime installed.  My program blows up with this exception:

An exception occurred creating the service: QuartzServer ---> 
System.MissingMethodException: Method not found: 'Int32 
System.Environment.get_CurrentManagedThreadId()'.
   at 
Castle.MicroKernel.Registration.AssemblyFilter.<Castle.Core.Internal.IAssemblyProvider.GetAssemblies>d__5..ctor(Int32
 
<>1__state)
   at 
Castle.MicroKernel.Registration.AssemblyFilter.Castle.Core.Internal.IAssemblyProvider.GetAssemblies()
   at 
Castle.MicroKernel.Registration.Classes.FromAssemblyInDirectory(AssemblyFilter 
filter)

CurrentManagedThreadId is only available in the 4.5 runtime.

Installing the 4.5 runtime on the target machine fixed the problem.

Has something incompatible slipped into the releases?  I looked  on github 
but I couldn't find the root of this stack trace.

Thanks

Miles

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to castle-project-users+unsubscr...@googlegroups.com.
To post to this group, send email to castle-project-users@googlegroups.com.
Visit this group at http://groups.google.com/group/castle-project-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to