XML解析错误:未组织好 的解决办法
2019/6/29 21:08:01
本文主要是介绍XML解析错误:未组织好 的解决办法,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
主要问题:XML文件完整,在liunx系统下可正常显示,但是windows系统提示出错,
I use iis to develope a new .net website. I promise the code is right, but most pages running in Firefox 2.0 reported this error:
XML解析错误:未组织好
位置:http://localhost/Lanxum/dTeam.aspx
行:1,列:2
< %@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="dTeam, App_Web_hkuu-y0n" title="Untitled Page" theme="iAffron" stylesheettheme="iAffron" %> -^
And in IE, error reported as below:
无法显示 XML 页。字符开头。
处理资源 ‘http://localhost/Lanxum/default.aspx' 时出错。
第 1 行,位置: 2
The reason is that I install visual studio first(together with .net framework 2.0) and then install IIS. It made .net FK didn't register in IIS. Just run this command with DOS:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
Once if you have install .net FK and IIS correctly, this sentence will follow:
开始安装 ASP.NET 。
…………………………………..
ASP.NET 安装完毕
Then refresh the page, you will find that the problem is fixed.
I use iis to develope a new .net website. I promise the code is right, but most pages running in Firefox 2.0 reported this error:
复制代码 代码如下:
XML解析错误:未组织好
位置:http://localhost/Lanxum/dTeam.aspx
行:1,列:2
< %@ page language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" inherits="dTeam, App_Web_hkuu-y0n" title="Untitled Page" theme="iAffron" stylesheettheme="iAffron" %> -^
And in IE, error reported as below:
复制代码 代码如下:
无法显示 XML 页。字符开头。
处理资源 ‘http://localhost/Lanxum/default.aspx' 时出错。
第 1 行,位置: 2
The reason is that I install visual studio first(together with .net framework 2.0) and then install IIS. It made .net FK didn't register in IIS. Just run this command with DOS:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
Once if you have install .net FK and IIS correctly, this sentence will follow:
开始安装 ASP.NET 。
…………………………………..
ASP.NET 安装完毕
Then refresh the page, you will find that the problem is fixed.
这篇关于XML解析错误:未组织好 的解决办法的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-02-26lxml not found please install it
- 2022-09-16使用Druid数据源-开启监控-xml的方式-配置类的方式
- 2022-09-08IDEA中pom.xml配置文件依赖文件版本号报红的最有效解决办法
- 2022-09-05如何更换项目中web.xml的版本
- 2022-09-02使用dom4j xml解析文件数据
- 2022-08-24可扩展标记语言——XML
- 2022-08-23mybatis 配置文件mybatis.xml的加载过程
- 2022-08-162022最新有效 哔哩哔哩Bilibili手机端.m4s文件缓存转.mp4教程 支持每个视频单独一个文件夹 支持转换xml弹幕
- 2022-08-15mybatis_8_在pom.xml中添加lombok
- 2022-08-13sql stuff for xml path 简单用法