Home > Net >  In the connection of the MySQL database App. Config in the configuration file, appear the following
In the connection of the MySQL database App. Config in the configuration file, appear the following

Time:09-26

 configuration system failed to initialize and unable to identify the configuration section of

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 ();
  •  Tags:  
  • C#
  • Related