I will discuss with you the issue of configurationmanager. openexeconfiguration (exepath ).

Source: Internet
Author: User

I <talk about additional configuration file reading and configrationmanager again. after posting the blog of openexeconfiguration (exepath) misleading error>, some friends put forward different opinions that this is not a bug, but a different understanding of the exepath parameter, then let me talk about my views. (In my opinion, this should be a bug)

I personally think: If exepath is the path of the EXE file, it will first generate another bug, that is, a translation error. On msdn, it is clearly pointed out that this is the path of the EXE configuration file, if it is the path of the EXE, the translation is wrong.

Second, will it be the path of EXE? I personally think it should not be the path of exe.Because the maximum significance of the configurationmanager. openexeconfiguration method is to open the custom Additional configuration file.The configuration. config file is not called an additional configuration file.

If any handsome guy has other methods for reading Additional configuration files, please kindly advise. I believe you will also need such practical things.

In addition, if the handsome guy has a more authoritative explanation and operation instructions for this method, or other examples of using this method in detail, he hopes to post them for discussion, I personally think that some changes to the configuration file are messy during the upgrade of the DOTNET framework. Now many new users do not know how to use it. I hope you can discuss more and share your experience. After all, the configuration file is used by various projects. Sorry, I am sorry.

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.