Goal
You
need to use tools in .NET that require the 4.0 framework in a project that uses
also the Visual Basic tools for Dynamics SL 2011. I recently ran across this
because I was using the infragistic controls for Windows Forms with Dynamics SL
custom screens.
Environment
Windows
Server 2012, Dynamics SL 2011, and Visual Studio 10.
Issue
When
you compile the project after changing to .net 4.0 framework you get a File Load
error like below.
Problem
signature:
Problem Event Name: CLR20r3
Problem Signature 01: ga11100.exe
Problem Signature 02: 1.0.5240.29754
Problem Signature 03: 536aa6a0
Problem Signature 04: Microsoft.VisualBasic
Problem Signature 05: 10.0.0.0
Problem Signature 06: 4ba2183b
Problem Signature 07: 96
Problem Signature 08: 2c
Problem Signature 09: System.IO.FileLoadException
OS Version: 6.1.7601.2.1.0.16.7
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read
our privacy statement online:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
If the
online privacy statement is not available, please read our privacy statement
offline:
C:\Windows\system32\en-US\erofflps.txt
Resolution
There is
none. Tools for Visual Basic will not work beyond framework 3.5. So in my case I am walking back a version in
the third party.
Conclusion
Tools for visual
basic require you use .net Framework 3.5 or earlier. Sorry I have no tricks on this but you should
know.