命名空间引用问题 包括找不到ConfigurationManager 这个类

    因为SqlConnection类是属于 System.Data.SqlClient命名空间下的,

    所以命名空间引用的时候需要加上 System.Data.SqlClient,代码如下:

      using System.Data.SqlClient;

c#添加了Configuration;后,竟然找不到 ConfigurationManager 这个类,后来才发现:引用了using System.Configuration这个头文件就可以了

原文地址:https://www.cnblogs.com/YangGC/p/5115367.html