javascript - XML 解析错误 : no root element found Location in Console FF

标签 javascript jquery xml asp.net-mvc

我使用的是 ASP.NET MVC,但我只在 FF 中遇到这个错误。为什么我会收到此错误消息?这是什么原因? 我不明白这个错误的根源在哪里。有人有什么想法吗?

enter image description here

下一个错误: enter image description here

最佳答案

检查这个link了解更多信息

Based on my research, the error message is only generated by FireFox when the render page is blank in Internet. For some reason, .NET generates a response type of "application/xml" when it creates an empty page. Firefox parses the file as XML and finding no root element, spits out the error message.

换句话说,这是一个已知的 Firefox 问题

关于javascript - XML 解析错误 : no root element found Location in Console FF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46487220/

相关文章:

javascript - Angular Directive(指令)格式化程序/渲染器不更新

javascript - 当我尝试从 JavaScript 数组中删除 JSON 对象时收到错误消息

sql-server - 使用 XML 输入的 SQL SELECT

javascript - 如何根据类型过滤元素(<select>)

javascript - 如何找到点击了哪个按钮 : jquery

xml - 从哪里获取 Google 搜索 XSD

jQuery 创建空的自闭标签

javascript - 适用于 Web 应用的 Cloud Firestore

javascript - 当 var trees = new Array ("redwood", "bay", "cedar"时 0 如何成为树的属性)

javascript - 正则表达式匹配数值