XML解析错误:未组织好 的解决办法
2010-10-25 12:02
309 查看
主要问题: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 页 - 名称以无效字符开头。”&&“ XML解析错误:未组织好”的解决方法
- xml 解析错误:未找到元素 问题解决思路及办法
- 解析xml文件时,错误信息org.xml.sax.SAXParseException:Parser has reached the entity expansion limit "64,000" set by the Application.的解决办法
- 安装BCG的出现XML解析错误之解决办法
- xml解析请求DTD错误的解决办法(断网服务器下):org.xml.sax.SAXParseExceptionpublicId
- 举例android项目中的string.xml出现这个The character reference must end with the ';' delimiter.错误提示的原因及解决办法
- AFNetWorking3.1 出现code=-1016错误unacceptable content-type: application/xml"解决办法
- 编写android程序时:Error in an XML file: aborting build"错误的解决办法
- KXML2解析xml出现的问题及解决办法
- 无法显示 XML 页。 使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试的解决办法
- maven项目出现web.xml is missing and <failOnMissingWebXml> is set to true错误的解决办法
- Myeclipse6.5+weblogic8.1老是配置文件出现,sax解析错误,不能解析web-app的解决办法
- DNS解析错误解决办法
- 解析javascript系统错误:-1072896658的解决办法
- FCKeditor出现"XML request error: Internal Server Error(500)"错误的解决办法
- 开启Hadoop2.6.0出现ssh无法解析主机名等错误提示的解决办法!
- 错误 org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException 解决办法
- Error in an XML file: aborting build 错误提示的解决办法
- FCKeditor出现"XML request error: Internal Server Error(500)"错误的解决办法
- eclipse报 No XML content. Please add a root view or layout to your document. 错误的解决办法