CodePudding user response:
Description: prompt in DAL. SQLHepler appear the exception,Solution: the connectionString write inside the AppConfig, but at the time of reference to write the wrong name, pay attention to ConnectionStrings content is different, in the column "" XXXX"
AppConfig is:
Reference:
Private static readonly string connString=ConfigurationManager. ConnectionStrings [r]. "connectionString" ToString ();
The correct should be:
Private static readonly string connString=ConfigurationManager. ConnectionStrings [r]. "connString" ToString ();