VS reports an error. A 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.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.