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

后端 未结 12 967
悲哀的现实
悲哀的现实 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 02:56

    I have the same error and the problem was in Web.config. In my case, just add the connectionStrings tag and its value and problem solved.

    
    your connection strings
     
    

提交回复
热议问题