There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
TypeLoadException when building and using Microsoft.Dynamic and Microsoft.Scripting under VS2010 beta2
I have a project that uses DLR in .NET4 (beta 2). I want to use DefaultBinder, so I drag in Microsoft.Dynamic (which requires Microsoft.Scripting, so I drag that into my VS2010b2 solution, too). I configure MS.Dynamic and MS.Scripting to build against v4 framework (in project properties).
When I call into DefaultBinder.CallMethod, I get a TypeLoadException whenever MS.Scripting is first loaded into the AppDomain:
"Inheritance security rules violated while overriding member: 'Microsoft.Scripting.SymbolId.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden."
Any thoughts on where I might be going wrong here?