See Below Link You may get some idea
and about the exception
First things to check are:
1) Architecture (x86, x64)
2)Crystal Runtime Version
[__b__]TypeInitializationException occurs when a static constructor has an error. It is thrown from static constructors. It actually wraps the errors from static constructors. It cannot be trapped outside of the static constructor reliably.
The Below Program Shows How this error will come
int number = 100;
int denominator = int.Parse("0");
int result = number / denominator;
static void Main()
Unhandled Exception: System.TypeInitializationException: The type initializer for
'Program' threw an exception. --->
System.DivideByZeroException: Attempted to divide by zero.
at Program..cctor() in....
--- End of inner exception stack trace ---