Error: including InkAnalyzer, .NET 4 and multiple Projects RRS feed

  • Question

  • Hello,

    i'm trying to include handwriting recognition capabilities as a library into a WPF .NET 4 Solution containing multiple projects. Therefore i wanted to use the IAWinFX.dll (tablet PC SDK 1.7) on Win7 x64 - but when running BackgroundAnalyze i get the following error:

    "Mixed mode assembly is built against version 'v1.0.3705' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information."

    I already tried modifying the corresponding .config file (set useLegacyV2RuntimeActivationPolicy="true") as recommended here: http://social.msdn.microsoft.com/Forums/fi-FI/wpf/thread/6acf2aab-29c4-4754-95eb-cb2d717c5a2e .

    I've also set the build target to x86 and changed this on the main application as well. The main application's config also has the useLegacyV2RuntimeActivationPolicy="true" set.

    Since i'm stuck with this problem a few days already i've been looking for a solution and thus also tried disabling the "Generate serialization assembly" option as suggested here: https://support.softwarekey.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=140

    but none of those attempts gave me a working InkAnalysis... What else can i do? Is there a solutionwide .config file where i might set the useLegacyV2RuntimeActivationPolicy option? Or do i need to add this option to every project in the solution?

    Thanks in advance!

    Thursday, March 31, 2011 11:18 PM

All replies