45IT.COM- 电脑学习从此开始!
DIY硬件教程攒机经验装机配置
设计Photoshop网页设计特效
系统注册表DOS系统命令其它
存储主板显卡外设键鼠内存
维修显卡CPU内存打印机
WinXPVistaWin7unix/linux
CPU光驱电源/散热显示器其它
修技主板硬盘键鼠显示器光驱
办公ExcelWordPowerPointWPS
编程数据库CSS脚本PHP
网络局域网QQ服务器
软件网络系统图像安全

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

电脑软硬件应用网 45IT.COM 时间:2011-11-22 10:01 作者:佚名

主要问题: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.

顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
无法在这个位置找到: baidushare.htm
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
验证码:点击我更换图片
推荐知识