[英]app.config error “corrupted or contain invalid XML”?
After many tries of trying to fix this error message, I still cannot manage to fix it and it only appears when I try to add a property to Settings.settings: 经过多次尝试修复此错误消息后,我仍然无法修复此错误消息,并且仅当我尝试向Settings.settings添加属性时才会显示该错误消息:
An error occurred when saving values to the app.config file. 将值保存到app.config文件时发生错误。 The file might be corrupted or contain invalid XML. 该文件可能已损坏或包含无效的XML。
Yes, I have looked for a fix online already but I haven't found a solution because I haven't even messed with my app.config file whatsoever. 是的,我已经在网上寻找修复程序,但是我没有找到解决方案,因为我什至没有弄乱我的app.config文件。 Here is my app.config file code: 这是我的app.config文件代码:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
</startup>
</configuration>
Open the App.config
and try one of the following: 打开App.config
并尝试以下操作之一:
App.config
file from another similar application and manually add your settings 最后的解决方案是从另一个类似的应用程序复制App.config
文件的xml架构,然后手动添加设置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.