1

我无法在 VB.Net 中使用 Visual Studio 上的 rdlc 报告创建报告。我不断收到此错误消息:

“本地报告处理过程中发生错误。报告定义无效。报告处理中发生意外错误。配置系统无法初始化。无法识别配置部分 userSettings。(C:\Users\user\AppData\Local\Slnk\ ManagementSystem.vshost.e_Url_brk155k23wwhtqesu2uousexuftu10hi\1.0.0.0\user.config 文件第 3 行"

我的代码似乎没有任何问题,因为错误消息没有指向我的代码,而是指向 user.config 文件。我打开了文件,这是文件中唯一显示的内容:

<xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
</configSections>
</configuration>

我在网上搜索了答案,并尝试删除 user.config 文件并让应用程序自动生成另一个,但没有帮助。到目前为止,在线解决方案都没有帮助。有没有人可以帮助我?

4

1 回答 1

1

So for anyone having this same problem, this is how I solved it. I went to the folder: C:\Users\user\AppData\Local\Slnk\ManagementSystem.vshost.e_Url_brk155k23wwhtqesu2uousexuftu10hi\1.0.0.0\user.config and renamed the user.config file to xuser.config. Then I restarted my application and for some reason, it worked!!! Hope this helps to whomever ends up with this problem.

于 2016-05-09T11:24:11.440 回答