我把写好的.aspx文件放在iis虚拟目录中,用IE6.0浏览器打不开,显示如图:别告诉我“运行vs2005命令行(开始、所有程序、vs2005、tools,写得不准确),之后找到.net2.0的路径,我的是在C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727,之后运行aspnet_regiis.exe /i,就ok了。”我试过,根本就没用!哪位高手指点一下,我一个寒假学ASP.NET不能全在这耗着!!!!!!

解决方案 »

  1.   

    XML语法问题。
    XML是不允许用一个以上的顶层元素的。查看你页面用到XML的地方。
      

  2.   

    http://topic.csdn.net/u/20091003/08/6b9d88e5-f231-4239-8a61-332812632b31.html
      

  3.   

    图片提示:
    无法显示 XML 页。 
    使用 XSL 样式表无法查看 XML 输入。请更正错误然后单击 刷新按钮,或以后重试。 
    --------------------------------------------------------------------------------XML 文档只能有一个顶层元素。处理资源 'http://20090901-2224/6152/ch01/punctual.aspx' 时出错。第 8 行,位置: 2 <html>
    -^
      

  4.   

    .aspx全部内容如下:
    <script language="c#" runat="server">
    void Page_Load()
    {
     time.Text=DateTime.Now.Hour.ToString()+":"+DataTime.Now.Minute.ToString()+":"+DataTime.Now.Second.ToString();
    }
    </script><html>
     <head><title>The Punctual Web Server</title></head>
     <body>
      <h1>Welcome</h1>
      In WebServerLand the time is currently:
      <asp:label id="time" runat="server"/>
     </body>
    </html>
    很无解……
      

  5.   

    我把.aspx修改为:
    <html> 
    <head> <title>The Punctual Web Server </title> </head> 
    <body> 
      <h1>Welcome </h1> 
    </body> 
    </html>
    这个倒是能用浏览器正常打开……
    顺便提一下,我电脑里装了.net framework 2.0和3.0还有3.0(乱了……)