This article is a mirror article of machine translation, please click here to jump to the original article.

View: 24760|Reply: 1

[Source] Cannot read the configuration section "XXX" because it is missing the section statement

[Copy link]
Posted on 8/8/2016 1:52:36 PM | | | |
The configuration section "DatabaseSettings" cannot be read because it is missing a section declaration




Here's my understanding, thisDatabaseSettingsIt is a node set by myself, and the name is chosen by myself.


It should be that the program cannot find the dll file that parses this node, I personally understand.


The solution is as follows:




configSections element specifies configuration sections and handler declarations. This is necessary because ASP.NET doesn't make any assumptions about how to handle settings within a profile. However, ASP.NET delegates the processing of configuration data to the configuration section handler.
Each section element identifies a configuration section or element and the associated ConfigurationSection derived class that processes that configure the section or element. You can logically group section elements in a sectionGroup element to organize section elements and avoid naming conflicts. The section and sectionGroup elements are included in the configSections element.
If the configSections element is included in the configuration file, the configSections element must be the first child element of the configuration element.







Previous:There are three configuration methods for Nhibernate in .net
Next:C# decimal and hex conversion
Posted on 8/8/2016 1:56:51 PM |
1111111111111111111111111111111111111111111111111111111111111111111111111
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com