Original http://www.cnblogs.com/zcftech/archive/2013/03/22/2976385.html
Seeing a Fruit Ninja somatosensory game version compiled by a kinect bull makes me feel ashamed that I have been using only the existing web games to simulate the control of the kinect somatosensory game. No way, I am a newbie. After learning for a while, I imitated the Star Wars Game and wrote an imitation version (I think everyone is familiar with this game). But when I started to add the control code for the kinect, suddenly, the system reports that "the mixed-mode assembly is generated for the runtime of version v1.1.4322. If other information is not configured, the Assembly cannot be loaded at runtime 4.0 ", when the breakpoint is called, the problem lies in Assembly reference. net 2.0, but kincet software requires a version above 4.0, So ..... this problem occurs.
Solution:
Create an app. config file in the main directory of the project and paste the following configuration data into the file,
<?xml version="1.0"?><configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0"/> </startup></configuration>
In fact, the mixed mode set problem occurs not only in V1.1.4322, but also in the query solution, it is found that this problem may occur when the Assembly version is changed, the solution is similar to the preceding configuration.