运行C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i

解决方案 »

  1.   

    没错,连我都学会了,虽然还没有机会用. aspnet_regiis -i 熟悉一下,以后好用.
      

  2.   

    1。.NET 安装的顺序应该是先装IIS,再装VS.NET,如果次序反了,或者IIS重装了,就需要使用aspnet_regiis.exe -i来重新安装IIS Mapping(主要用于aspx, asmx等文件的Extention的匹配)。在C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705目录下,运行下面的命令:aspnet_regiis.exe -i 2。重设ASPNET的密码,然后在下面的目录中找到Machine.config文件:%Systemroot%Microsoft.NET\Framework\v1.0.3705CONFIG (Systemroot是你的安装目录),在<processModel>标识中添加/修改:userName和password3。如果还不行,重装IIS,然后再按照方法1进行操作。如果你的机器是域控制器,你可以参考Q315158:ASP.NET Does Not Work with ASPNET Account on Domain Controller:http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q315158&和你大致讲一下操作的步骤: 1。在Administrative Tools->Active Directory Users and Computers中建立一个名为ASPUSER的用户,将该用户添加到用户组中(默认情况下已在User Group中) 2。在Administrative Tools->Local Security Settings->Local Policy->UserRight Assignment中,双击右栏的Log on as a batch job项,在弹出的窗口中点击Add,选择或输入刚才建立的ASPUSER帐号,确定。(需要重启机器) 3。确保ASPUSER帐号有相应文件、目录的访问权限4。在下面的目录中找到Machine.config文件:%Systemroot%Microsoft.NETFrameworkv1.0.3705CONFIG (Systemroot是你的安装目录),在<processModel>标识中添加/修改:userName="DomainNameASPUSER" password="ASPUSERpassword" 其中ASPUSERpassword是刚刚建立的ASPUSER的密码,DomainName是你的域名 最后把机器RESET一下
    这样做一般没什么问题了
      

  3.   

    C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i
      

  4.   

    楼上说得很对了,我在罗嗦一编,也可以使用.net菜单里的命令行工具aspnet_regiis -i重新安装asp.net
    多利用csdn的搜索
      

  5.   

    C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i
      

  6.   

    我有次也遇到过但用C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i
    这方法没能解决,只好新建同名工程,把文件复制过去的
      

  7.   

    装的时候一定要先装IIS,千万不能装反了我就吃过这个亏
      

  8.   

    安装盘里就有说明的,很容易找到。Q: Can I install Internet Information Services after Visual Studio .NET setup? A: Yes, however, this is not recommended. Visual Studio .NET setup will install the Microsoft .NET Framework, which registers new extensions with Internet Information Services. If you install Internet Information Services later, you will need to repair the Microsoft .NET Framework to register its extensions.  To repair the .NET Framework:Insert the Visual Studio .NET Prerequisites CD or Visual Studio .NET DVD. 
    On the Start menu, choose Run. 
    Type the following: 
    <CD Drive >:\dotNetFramework\dotnetfx.exe /t:c:\temp /c:"msiexec.exe /fvecms c:\temp\netfx.msi"
    —or— <DVD Drive >:\wcu\dotNetFramework\dotnetfx.exe /t:c:\temp /c:"msiexec.exe /fvecms c:\temp\netfx.msi"