Well, we've told you the only way to do it, and you've even said that you've tried it and it works ("supportedruntime in appconfig"). The only other option you have to to get an updated Dynamics library and compile a second version of your .DLL that works with the .NET 4.0 CLR.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak