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:

< %@ 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:WINDOWSMicrosoft.NETFrameworkv2.0.50727aspnet_regiis.exe -i

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

开始安装 ASP.NET

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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.