C # An exception occurs when the type of the initial value is set.

Source: Internet
Author: User

Today, we use vs2010 to compile the C # program. After the program is successfully compiled, click Run to start the program. The pop-up box prompts an error, as shown in the following figure. Breakpoint debugging, the program did not even enter the main function !! For more information, see (1) reflection mechanism (2) Incorrect app. config file format (3) Assembly reference. After judgment, none of the above are met. Finally, we found that the 64-bit startup project's target platform was configured with x86, and started successfully after being changed to 64-bit. Because this project was not created by myself, I had no instinct to check the property configuration. Here we record it for future reference, which is also convenient for later users.

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.