After properties. settings is referenced, if "the configuration system cannot be initialized" or the node is incorrect

Source: Internet
Author: User

A custom powerconfig namespace powersettings. Settings

 

Then an EXE references the DLL and adds configuration items in APP. cinfig.

<Applicationsettings>
<Powerconfig. powersettings>
<Setting name = " Sharedip " Serializeas = " String " >
<Value> 1 . 1 . 1 . 1 </Value>
</Setting>
</Powerconfig. powersettings>
</Applicationsettings>

 

However, during the execution, the system prompts that the configuration system cannot be initialized. I guess there is a problem with this configuration item, but why does it not return?

After searching, you can find that

<Configsections>
<Sectiongroup must be registered. Otherwise, powerconfig. powersettings cannot be found.

<Configsections>
<Sectiongroup name = " Applicationsettings " Type = " System. configuration. applicationsettingsgroup, system, version = 2.0.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " >
<Section name = " Puppettool. putpetset " Type = " System. configuration. clientsettingssection, system, version = 2.0.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " Requirepermission = " False " />
<Section name = " Puppettool. tolset " Type = " System. configuration. clientsettingssection, system, version = 2.0.0.0, culture = neutral, publickeytoken = b77a5c561934e089 " Requirepermission = " False " />
 <Section name ="Powerconfig. powersettings"Type ="System. configuration. clientsettingssection, system, version = 2.0.0.0, culture = neutral, publickeytoken = b77a5c561934e089"Requirepermission ="False"/>
</Sectiongroup>
</Configsections>

the Blue section is actually a section name, which is the same as the preceding section name. This is the application in powerconfig. the config file can also be found. copy the file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.