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

网络编程 2021-07-05 11:35www.168986.cn编程入门
主要问题XML文件完整,在liunx系统下可正常显示,windows系统提示出错
主要问题XML文件完整,在liunx系统下可正常显示,windows系统提示出错,
I use iis to develope a new . 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 . framework 2.0) and then install IIS. It made . FK didn't register in IIS. Just run this mand with DOS:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\asp_regiis.exe -i

Once if you have install . FK and IIS correctly, this sentence will follow:

开始安装 ASP.NET 。
…………………………………..
ASP.NET 安装完毕

Then refresh the page, you will find that the problem is fixed.

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by