库错误:XML格式错误(0,0). Rootlement丢失 [英] Library error: There is an eror in XML-docoment (0, 0). Rootelement is missing

查看:182
本文介绍了库错误:XML格式错误(0,0). Rootlement丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在使用一个库来与PLC通信.
如今,它因以下错误而无处崩溃":

Hi there,

I am using a library for communication to a PLC.
Today it out of nowhere "crashed" with the following error:

There is an eror in XML-docoment (0, 0). Rootelement is missing



我知道它是XML文件中缺少的rootelement,但是问题是它带有.dll的库导致了错误.没有XML文件,它也会在我编写的所有其他应用程序上发生,即使它们是不同的应用程序,并且每个应用程序都使用不同的.dll.
我曾尝试用一些新的.dll代替它,但这两个都不起作用.

但是,如果我在另一台计算机上运行我的应用程序,则它运行良好,并且没有例外.

所以我想知道这是我的计算机故障还是某些我做错的C#代码?
我最终能做些什么来解决它?

感谢您的宝贵时间,
并度过一个愉快的周末.



I know that its the rootelement that is missing in a XML-file, but the problem is its a library with .dll''s that gives the error. There is no XML-file, and it happens on all the other applications I have written as well even though they are different application, and each application use different .dll''s.
I have tried replace the .dll''s with some new, and that doesnt work neither.

But, if I am running my application on another computer it is working very well and no exceptions is coming.

So I am wondering, is this a fault at my computer or some C# code I have done wrong?
What can I eventually do to fix it?

Thanks for your time,
and have a nice weekend.

推荐答案

此处为修复链接

反序列化期间XML文档(0,0)中有错误 [
Here a fix link

There is an error in XML document (0, 0) during Deserialization[^]


已使用Reflector反编译dll文件并找到.XML文件的目录,然后进行更改.
Had to use Reflector to decompile the dll file and find the directory to the .XML file and then change it.


这篇关于库错误:XML格式错误(0,0). Rootlement丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆