TypeInitializationException

When running your application, you get a TypeInitializationException: "The type initializer for 'com.jnbridge.jnbcore.ObjectWrapper' threw an exception."

This usually indicates a licensing or configuration problem.

Each TypeInitializationException contains an InnerException property indicating its root cause. To diagnose the problem, you should catch the TypeInitializationException and examine its InnerException. Sometimes the InnerException is itself a TypeInitiaiizationException, and in fact, you could have an entire chain of TypeInitializationExceptions. In such a case, you should go to the end of the chain:

try
{
     // the code that throws the exception goes here
}
catch (TypeInitializationException ex)
{
     Exception e = ex.InnerException;
     while(e is TypeInitializationException)
     {
          e = e.InnerException;
     }

     // diagnose the problem by examining e's type, message, and
     // stack trace here 
}

Examining this information is often sufficient to diagnose the problem. If not, please send the type, message, and stack trace information for the exception at the end of the chain to support@jnbridge.com