Is there a way to reference multiple frameworks in the same project?

foraye

New member
Joined
Jun 25, 2014
Messages
2
Programming Experience
1-3
Hello All,

I'm currently working on a project that I now notice uses 2 different frameworks. I recently installed a new SDK that is based on 4.0 and changed my target framework from 3.5.

I attempted to run my code and now get the following:

An unhandled exception of type 'System.IO.FileLoadException' occurred in Seagull.BarTender.Print.dll

Additional information: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.


Can someone please help with this? Do I need to reference 2 frameworks?
Thanks
 
Thanks Herman,

I contacted the SDK supplier and they recommended adding the following to my app.config file

<startup useLegacyV2RuntimeActivationPolicy="true">

that seem to have fixed the issue as the error went away!

I'm still a beginner having only written code in VBA and VB6...I have not gotten to the muti-project solutions yet, but i'm heading there.
 
Back
Top