I couldn\'t figure out what is the problem for this exception.
The type initializer for \'System.Data.SqlClient.SqlConnection\' threw an exception
A similar solution to those mentioned above, but in my case it was the applicationSettings tag within the app.config that needed to be removed.