xml解析错误的原因是什么元素在aspx页面中找不到位置行号1列1错误 [英] What is the cause of xml parsing error no element found location line number 1 column 1 error in aspx page

查看:179
本文介绍了xml解析错误的原因是什么元素在aspx页面中找不到位置行号1列1错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的开发服务器中随机出现以下错误。



  XML  解析 错误:  no  < span class =code-leadattribute> element   found  
位置: < span class =code-leadattribute> https: // example.org/Web/Users/UserCreate .aspx
数字 1 1:





这在当地工作正常。任何人都帮我解决了这个环境问题。

解决方案

检查你正在打开的XML文件的内容 - 通过它的声音它与它不同文件在本地系统上,可能是空的。


我认为你添加了< httpErrors errorMode =CustomexistingResponse =PassThrough/>

在< system.webserver>中(web.config)。

请暂时删除它以便您可以看到实际错误。

收到错误后,您可以搜索实际错误。

I am getting below error randomly in my development server.

XML Parsing Error: no element found
Location: https://example.org/Web/Users/UserCreate.aspx
Line Number 1, Column 1:



This is working fine in local. anybody help me how to fix this environment issue.

解决方案

Check the content of the XML file you are opening - by the sounds of it it is not the same as the file on your local system, and may well be empty.


I think you added <httpErrors errorMode="Custom" existingResponse="PassThrough"/>
in <system.webserver> (web.config).
Please remove this for a while so that you can see the actual error.
After you get error you can search for actual error.


这篇关于xml解析错误的原因是什么元素在aspx页面中找不到位置行号1列1错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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