TypeInitializationException is caused mainly using private static constructor. Calling SetLanguage
method will call this constructor and it thrown this exception. So create new Class for this or call constructor before this method.
Fxp. here it's nice example: http://www.dotnetperls.com/typeinitializationexception