What is and how to fix System.TypeInitializationException error?

Whenever a TypeInitializationException is thrown, check all initialization logic of the type you are referring to for the first time in the statement where the exception is thrown – in your case: Logger. Initialization logic includes: the type’s static constructor (which – if I didn’t miss it – you do not have for Logger) and field initialization. Field initialization is pretty … Read more

Is “ ” a replacement of ” “?

  is the character entity reference (meant to be easily parseable by humans).   is the numeric entity reference (meant to be easily parseable by machines). They are the same except for the fact that the latter does not need another lookup table to find its actual value. The lookup table is called a DTD, by the way. … Read more