.net System.TypeInitializationException 类型初始值设定项引发异常 错误原因:静态字段连接数据库内容错误(应为Integrated Security=True) 果然解决! 来自:http://blog.csdn.net/zhang1597116/article/details/8081359