public class Clientexceptionutil
{
<summary>
Log Control Object
</summary>
public static readonly ILog logger = Locallogmanage.getlogmanager ();
The reason for the error is: the static variable of the Clientexceptionutil class initially has an exception because of a problem with referencing the log4net DLL version.
1. Access to a static member of a class, while the initialization (or static constructor) of another static member produces an exception. For example, access to classhelper.staticstring, because the initialization of a static member field produces an exception, so calling Classhelper.staticstring throws TypeInitializationException.
2. Access to a static member of the class, the initialization (or static constructor) of the static member produces an exception. For example, Access Classhelper.field.
3. Initialize the class, and some static member in the class initializes (or in a static constructor) an exception occurs. For example Classhelper helper = new Classhelper ().
Type initializer throws an exception