An unhandled exception of type 'System.TypeInitializationException' occurred in System.ServiceModel.dll

异常“

An unhandled exception of type 'System.TypeInitializationException' occurred in System.ServiceModel.dll

Additional information: The type initializer for 'System.ServiceModel.DiagnosticUtility' threw an exception.

原因:配置文件中有如下数据库连接。

<connectionStrings >
    <add name ="ConnStrHQ" connectionString ="Data Source=.;Initial Catalog=HeadQ;Persist Security Info=True;User ID=sa;Password=sa;Max Pool Size=512" />
  </connectionStrings>

An unhandled exception of type 'System.TypeInitializationException' occurred in System.ServiceModel.dllAn unhandled exception of type 'System.TypeInitializationException' occurred in System.ServiceModel.dll

上一篇:sql server 查看数据库配置等信息(字符集,编码格式,版本号...)


下一篇:linux -- Ubuntu查看修改mysql的登录名和密码、安装phpmyadmin