欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2022-03-21 23:35:04
主要问题:xml文件完整,在liunx系统下可正常显示,但是windows系统提示出错, i use iis to develope a new .net website....
主要问题: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 解析错误