I am using Microsoft.Dynamics.BusinessConnectorNet with this which is compiled in 2.0 version.
My dll works fine in .net environment where i can set supportedruntime in appconfig.
But when dll goes to JNI it is running under the latest .net framework i.e 4.0 installed in that system and giving the mixed mode assembly exception .