XML分析器错误:未找到元素 [英] XML-parser error: no element found

查看:105
本文介绍了XML分析器错误:未找到元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有位于服务器上的asp.net应用程序。
这是工作,但后来我加了一大堆东西,现在我得到:

I have a asp.net application which is located on a server. It was working but then I added a whole bunch of stuff and now I get:

XML分析器错误:未找到元素
地址: http://www.dtm.se/payex/Default.aspx
第1行,第1列:

XML-parser error: no element found Address: http://www.dtm.se/payex/Default.aspx Row 1, Column 1:

(我有翻译瑞典此错误信息,因此可能不是100%准确)

(I have translated this error message from Swedish so it might not be 100% accurate)

在Firefox中,当我上传code,以我的网站出现错误。
在IE 8和谷歌Chrome我得到的空白页。
当我编译它,它在本地运行没有问题。

The error occurs in Firefox when I upload the code to "my" site. In IE 8 and Google Chrome I get blank pages. When I compile it it locally it runs without issues.

我有我的计算机上设置IIS(7.0)和它的作品在那里。

I have set up IIS (7.0) on my machine and it works there to.

我已经检查了服务器上的文件,以防万一有什么问题上传,但code在那里。

I have checked the files on the server just in case there was something wrong with the upload but the code was there.

我也试图删除code我已经加入,看看我是否能得到它的工作了。
但不是。当然,我不是100%肯定,我把一切都回到从前的样子。

I also have tried to remove the code I have added to see if I can get it to work again. But no. Of course I am not 100% sure I got everything back to the way it was.

没关系,我试图加载所有的人都收到此错误信息的文件。

It doesn't matter which file I am trying to load all of them get this error message.

嗯,当我写这篇文章我感觉它可能是错误的方式asp.net应用程序我设置的服务器上。
但是,因为它从一开始工作......

Hmm, when I write this I get the feeling it might be something wrong with the way the asp.net application i set up on the server. But since it worked from the beginning...

有很多code,所以我真的不知道该怎么在这里上传但也许有人认出此错误信息,并且知道它是什么或可能指向我的方向是正确的。

There is a lot of code so I don't know really what to upload here but maybe someone recognize this error message and knows what it is or maybe point me in the right direction.

推荐答案

该错误是,我是使用MySQL,当我添加了引用到连接器将其添加在web.config中一条线,但它没有添加中的DLL bin文件夹。
因此,当服务器试图访问文件时,它通过这个错误。
所以我手动添加文件到bin文件夹下,田田,它开始工作。

The error was that I was using MySql and when I added the reference to the connector it added a line in web.config, but it didn't add the dll in the bin folder. So when the server tried to access the file it thru this error. So I added the file manually to the bin folder and, tada, it started working.

我记得disinctly的VisualStudio添加文件时,我选择添加引用。
但是,也许我有它混淆了别的东西。

I disinctly remember VisualStudio adding the files when I choose add reference. But maybe I had it mixed up with something else.

这篇关于XML分析器错误:未找到元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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