|
I have a project I ported from the first beta of VC# Express to the second beta. Whenever I try to create an instance of an SqlConnection, anywhere in the program I get the following exception:
The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception.
If I start a new project I don't have this problem.
for example new SqlConnection(); would throw this
or SqlConnection dbConnection = new SqlConnection("......."); as well |