I use visual studio 2005 and 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 <v2.0.50727>。
.........................................
ASP.NET<v2.0.50727> 安裝完畢
Then refresh the page, you will find that the problem is fixed.
posted on 2008-03-10 16:36
Carl 閱讀(3832)
評論(4) 編輯 收藏 所屬分類:
.NET