08-31 17:02:03: ### DEBUG ##########################System.TypeInitializationException: The type initializer for 'Mono.Unix.Native.Stdlib' threw an exception. ---> System.DllNotFoundException: /usr/lib/libMonoPosixHelper.so  at (wrapper managed-to-na…
.net应用程序通过Oracle.DataAccess.dll访问64位的Oracle服务器,在连接时出现以下异常:“System.TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception. ---> Oracle.DataAccess.Client.OracleException: 提供程序与此版本的 Oracle 客户…
下午在调试的时候报错数据库连接就报错我就很纳闷后面用原来的代码写发现还是报错 System.TypeInitializationException: 'The type initializer for 'MySql.Data.MySqlClient.Replication.ReplicationManager' threw an exception.' 应该是出在Mysql包上的问题 但是我发现更换版本也不行 我就尝试着打开mysql到自己数据库看看 回来之后调试又成功了,之后问题又出现过1次但…
the type initializer for '' threw an exception 问题:程序启动时初始化主窗口类时,弹出该错误.调查:查看类的构造函数是否会有异常抛出.解决:去掉类的构造函数中可能出现的异常. ////////////////////// 环境:windows 2003 x64,Oracle 10g x64,odp.net(正确安装),.net framework 4 问题:.net应用程序通过Oracle.DataAccess.dll访问64位的Oracle服务器,…
[15/08/19 00:03:10] [DataManager-7292-ERROR] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeInitializationException: The type initializer for 'System.Data.Entity.Internal.AppConf…
什么是System.TypeInitializationException 作为类初始值设定项引发的异常的包装器而引发的异常. 继承 Object Exception SystemException TypeInitializationException 详细说明 当类初始值设定项初始化类型失败时,将创建一个 TypeInitializationException,并向其传递对由该类型的类初始值设定项引发的异常的引用. InnerException 的TypeInitializationExce…
异常“ An unhandled exception of type 'System.TypeInitializationException' occurred in System.ServiceModel.dll Additional information: The type initializer for 'System.ServiceModel.DiagnosticUtility' threw an exception. ” 原因:配置文件中有如下数据库连接. <connectionSt…
 Change the "System.Drawing" reference of "CoreCompat.System.Drawing"if you throw The type initializer for 'System.Drawing.KnownColors' threw an exception     to do:apt-get install libgdiplus …
The type initializer for System.Data.SqlClient.SqlConnection threw an exception net framwork啥原因 xp电脑…
System.Drawing 在linux使用时提示异常 The type initializer for 'Gdip' threw an exception 解决方案: yum install autoconf automake libtool yum install freetype-devel fontconfig libXft-devel yum install libjpeg-turbo-devel libpng-devel giflib-devel libtiff-devel lib…