{“对象引用未设置为对象的实例。”}运行项目时出现错误

时间:2015-05-24 04:49:14

标签: c#

开始运行项目时出现以下错误。 Plz帮助我。

{"Object reference not set to an instance of an object."}

我从

开始在以下代码段中得到提到的错误
    String connectionKRAcademy = ConfigurationManager.ConnectionStrings["ChequeRegistry"].ConnectionString;

class DataControl
    {
        String connectionKRAcademy = ConfigurationManager.ConnectionStrings["ChequeRegistry"].ConnectionString;
    public static oledbConnection NewCon;
    public oledbDataReader dr;
    public int dataread = 0;
    public DataControl()
    { }

0 个答案:

没有答案