re-motion mixins TypeInitializationException

You get this exception when you want to use the re-motion API and a re-motion assembly can't be loaded. This typically occurs if you use the re-mix library in your application, but don't use the rest of re-motion. You can force the load by invoking

FrameworkVersion.RetrieveFromType (typeof (IMixinTarget));
'System.TypeInitializationException was unhandled' exception
System.TypeInitializationException was unhandled
  Message="The type initializer for 'Remotion.Reflection.ParamList' threw an exception."
  Source="RemotionMixins.DessertWax1"
  TypeName="Remotion.Reflection.ParamList"
  StackTrace:
       at RemotionMixins.DessertWax1.Program.Main(String[] args) in C:\Programming\RemotionMixins\RemotionMixins.DessertWax1\Program.cs:line 44
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: Remotion.Implementation.VersionDependentImplementationException
       Message="The initialization of type 'Remotion.BridgeInterfaces.IParamListCreateImplementation' threw an exception of type 'InvalidOperationException': The framework version could not be determined automatically. Manually set Remotion.Implementation.FrameworkVersion.Value to specify which version should be used. The automatic discovery error was: There is no version of Remotion currently loaded or referenced."
       Source="Remotion.Interfaces"
       StackTrace:
            at Remotion.Implementation.VersionDependentImplementationBridge`1.get_Implementation() in c:\build\Remotion\trunk\Remotion\Core\Interfaces\Implementation\VersionDependentImplementationBridge.cs:line 36
            at Remotion.Reflection.ParamList..cctor() in c:\build\Remotion\trunk\Remotion\Core\Interfaces\Reflection\ParamList.template.cs:line 33
       InnerException: System.InvalidOperationException
            Message="The framework version could not be determined automatically. Manually set Remotion.Implementation.FrameworkVersion.Value to specify which version should be used. The automatic discovery error was: There is no version of Remotion currently loaded or referenced."
            Source="Remotion.Interfaces"
            StackTrace:
                 at Remotion.Implementation.FrameworkVersion.RetrieveFrameworkVersion() in c:\build\Remotion\trunk\Remotion\Core\Interfaces\Implementation\FrameworkVersion.cs:line 72
                 at Remotion.Implementation.FrameworkVersion.get_Value() in c:\build\Remotion\trunk\Remotion\Core\Interfaces\Implementation\FrameworkVersion.cs:line 42
                 at Remotion.Implementation.ConcreteImplementationAttribute.GetTypeName() in c:\build\Remotion\trunk\Remotion\Core\Interfaces\Implementation\ConcreteImplementationAttribute.cs:line 39
                 at Remotion.Implementation.ConcreteImplementationAttribute.ResolveType() in c:\build\Remotion\trunk\Remotion\Core\Interfaces\Implementation\ConcreteImplementationAttribute.cs:line 52
                 at Remotion.Implementation.ConcreteImplementationAttribute.InstantiateType() in c:\build\Remotion\trunk\Remotion\Core\Interfaces\Implementation\ConcreteImplementationAttribute.cs:line 57
                 at Remotion.Implementation.VersionDependentImplementationBridge`1.ImplementationClass.GetImplementation() in c:\build\Remotion\trunk\Remotion\Core\Interfaces\Implementation\VersionDependentImplementationBridge.cs:line 52
                 at Remotion.Implementation.VersionDependentImplementationBridge`1.ImplementationClass..cctor() in c:\build\Remotion\trunk\Remotion\Core\Interfaces\Implementation\VersionDependentImplementationBridge.cs:line 41
            InnerException: System.InvalidOperationException
                 Message="There is no version of Remotion currently loaded or referenced."
                 Source="Remotion.Interfaces"
                 StackTrace:
                      at Remotion.Implementation.FrameworkVersionRetriever.RetrieveVersion() in c:\build\Remotion\trunk\Remotion\Core\Interfaces\Implementation\FrameworkVersionRetriever.cs:line 50
                      at Remotion.Implementation.FrameworkVersion.RetrieveFrameworkVersion() in c:\build\Remotion\trunk\Remotion\Core\Interfaces\Implementation\FrameworkVersion.cs:line 64
                 InnerException: