I couldn\'t figure out what is the problem for this exception.
The type initializer for \'System.Data.SqlClient.SqlConnection\' threw an exception
I have the same error. And I findout the solution for it by change "app.config":
xyz
Note: Line [supportedRuntime version="v2.0.50727"] is the most importance.