Exception: type initializer for 'system.data.sqlclient.sqlconnection'?

后端 未结 12 954
悲哀的现实
悲哀的现实 2020-12-11 02:35

I couldn\'t figure out what is the problem for this exception.

The type initializer for \'System.Data.SqlClient.SqlConnection\' threw an exception

12条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-11 03:01

    In my case , the problem was modifying tag name in app.config file by mistake just compare your app.config file with another old one .. You will find out the problem ...

提交回复
热议问题