C # ConfigurationManager There is no problem solving

Source: Internet
Author: User

When you do the serial communication, you need to use"ConfigurationManager"class, but after adding a "Using system.configuration" namespace, the compiler still complains, always showing that "ConfigurationManager" does not exist, but found"ConfigurationSettings"Can be used, but the notes on MSDN show the using the ConfigurationManager class, you can access configuration information for computers, applications, and users. This class replaces the "ConfigurationSettings" class that has been deprecated. "The beginning was suspected of being used. NET version is too old, but after viewing it, it is not, after looking closely at the MSDN technical documentation and discoveringthe "ConfigurationManager" class cannot be inherited., while also saying that the System.Configuration assembly is in System.Configuration.dll, so a reference to the solution is added to the System.Configuration, which solves the problem perfectly.

C # ConfigurationManager There is no problem solving

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.