XML解析错误:未组织好 的解决办法

所属分类: 网络编程 / XML/RSS 阅读数: 239
收藏 0 赞 0 分享
主要问题: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.
更多精彩内容其他人还在看

用XML和SQL 2000来管理存储过程调用

用XML和SQL 2000来管理存储过程调用
收藏 0 赞 0 分享

把数据转换成XML格式的好处

把数据转换成XML格式的好处
收藏 0 赞 0 分享

使用XML实现BBS(主题列表篇)

使用XML实现BBS(主题列表篇)
收藏 0 赞 0 分享

为何XML对Web服务很重要

为何XML对Web服务很重要
收藏 0 赞 0 分享

利用XML开发留言板简单的例子

利用XML开发留言板简单的例子
收藏 0 赞 0 分享

xml中的空格之完全解说

xml中的空格之完全解说
收藏 0 赞 0 分享

如何快速通过XSL转换XML文件

如何快速通过XSL转换XML文件
收藏 0 赞 0 分享

XML数据库中几个容易混淆的概念

XML数据库中几个容易混淆的概念
收藏 0 赞 0 分享

XML卷之实战锦囊(1):动态排序

XML卷之实战锦囊(1):动态排序
收藏 0 赞 0 分享

XML卷之实战锦囊(2):动态查询

XML卷之实战锦囊(2):动态查询
收藏 0 赞 0 分享
查看更多