摘要: public class LogHelper { private static string logFolder = AppDomain.CurrentDomain.BaseDirectory + "errorlog"; private static string logFile; /// /// 构造函数 ... 阅读全文
posted @ 2016-07-13 13:36 会弹猫的吉他 阅读(310) 评论(0) 推荐(0) 编辑
摘要: 出现原因: 因为Global类初始化某个静态变量时没有成功则会抛 System.NullReferenceException 异常,具体代码: public static string connstring = System.Configuration.ConfigurationManager.Co 阅读全文
posted @ 2016-07-13 12:55 会弹猫的吉他 阅读(733) 评论(0) 推荐(0) 编辑