C # The program cannot parse the configuration file correctly

Source: Internet
Author: User

This is a problem caused by my "out of nothing". It may be helpful to record it.

One of our testsProgramIt is written in C #. It reads a configuration file, which contains serial port settings or network IP/port settings.

I once changed this program to "Windows 2000 compatibility mode", and later I found that this program could not parse the configuration file correctly.

The reason is beyond my capability. I think it is related to the differences in the running environment in XP compatibility mode.

In Native XP, the program has sufficient permissions to access or apply for the resources it needs. In Windows 2000 compatibility mode, the operating system creates a different environment for the program to run "virtual". In this environment, there are restrictions on program access and resource application. In other words, running the. NET Framework in XP on Windows 2000 is a problem. I think this is a bug left behind by Microsoft's compatibility model, but few people need to use this model, which is irrelevant.

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.