Sunday 26 April 2015

The type initializer for 'MyClass' threw an exception



Solution:

This problem can be caused if a class tries to get value of a key in web.config or app.config which is not present there.