使用VS2005 + SQL 2000
新建立一个网站---》文件位置选择HTTP 然后就会出现“未能将网站http://localhost/testASP配置到ASP.NET2.0,为了使此网站正确运行,您可能需要将它手动配置ASP.NET2.0”。然后执行程序浏览器出现如下问题:(我没有添加任何代码)The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. 
--------------------------------------------------------------------------------A name was started with an invalid character. Error processing resource 'http://localhost/testASP/Default.aspx'. Line 1, P...<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
-^从网上搜了答案如下:
o use Aspnet_regiis.exe to update a script map for an ASP.NET application  Open a command window. (Click Start, click Run, type cmd, and then click OK.)  
Navigate to the directory of the Aspnet_regiis.exe version you want to use. Remember that each version of the .NET Framework comes with its own version. The file is usually located in the following directory:  
systemroot\Microsoft.NET\Framework\versionNumber  Use the -s or -sn option of Aspnet_regiis.exe along with the path to the application to set up the script maps. The following shows a sample command line that updates the script maps for an application called SampleApp1.  
Aspnet_regiis.exe -s W3SVC/1/ROOT/SampleApp1 可是我运行以后还是有问题,有没有哪位高手给指点下,不甚感激。

解决方案 »

  1.   

    修改IIS里的那个为ASP。NET设置
      

  2.   

    TO mylove_hong_2002 "修改IIS里的那个为ASP。NET设置"
    怎么修改?
    TO Sandy945  
    我知道文件系统可以使用,最后再使用IIS的虚拟目录来发布,但是我想用那个HTTP方式。
      

  3.   

    IIS里查看新建的网站的属性,在asp,net页里修改
      

  4.   

    我尝试着重新安装了.NET, 没有出现
    “未能将网站http://localhost/testASP配置到ASP.NET2.0,为了使此网站正确运行,您可能需要将它手动配置ASP.NET2.0”。 但是一运行程序,就会出现HTTP500内部WEB服务器错误。搞了半天没有搞定的。有没有明白的,解释以下。
    看来还是需要先安装IIS,然后再安装.NET.....
      

  5.   

    在命令行运行这个命令
    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
      

  6.   

    TO youth0826  我用的就是这条命令,可是问题如5楼显示。TO ccaakkee  IIS里面如何设置,具体 说下吧。
      

  7.   

    貌似是先安的vs,后安装的IIS,我当时遇到问题是运行的这个命令