Showing posts with label The type initializer for 'MyClass' threw an exception. Show all posts
Showing posts with label The type initializer for 'MyClass' threw an exception. Show all posts

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.