The type initializer for ‘System.Data.SqlClient.SqlConnection’ threw an exception
Views (564)
I was getting the above error in one of my windows application. Was because of some section getting repeated in the app.config file.
Removing the duplicate section information from the app.config resolved the issue.
Filed under: Windows Application Tagged: Windows Application
This was originally posted here.

Like
Report
*This post is locked for comments