2010-08-21 245 views
11

aspnet_regiis.exe做什么除了更新文档映射以更正aspnet_isapi.dll版本,正在从inetmgr更新ASP.NET版本与运行aspnet_regiis相同,我找不到任何博客文章或描述此特定批处理命令执行的步骤的文章。请给您知道的细节ASPNET_REGIIS.EXEaspnet_regiis.exe做什么

回答

11

的步骤从MSDN reference的任何链接:

当.NET Framework的多个版本在一台计算机上执行并排侧的ASP。映射到ASP.NET应用程序的.NET ISAPI版本确定应用程序使用了哪种版本的公共语言运行库(CLR)。 ASP.NET IIS注册工具(Aspnet_regiis.exe)允许管理员或安装程序轻松更新ASP.NET应用程序的脚本映射,以指向与该工具关联的ASP.NET ISAPI版本。该工具也可用于显示所有安装的ASP版本的状态。 NET,注册与该工具耦合的ASP.NET版本,创建客户端脚本目录以及执行其他配置操作。

Scott Forsyth's blog

在ASP.NET的第一个版本开始,微软已经提供了一个工具来控制框架的版本在IIS中注册。这个工具aspnet_regiis.exe非常灵活,并且正确理解IIS和ASP.NET的工作方式,可以用于大多数情况。

+5

whats google? :P – 2011-08-23 05:58:16

3

REG isters ASPNET扩展与IIS

+1

不是说他所说的'除'以外? :P – 2011-08-23 05:57:54

4

它也可以修复安装的aspnet。

有时它会中断,您需要运行aspnet_regiis -i或-ir来修复它。

+19

大声笑“有时它只是打破”。 – Chev 2011-08-01 20:53:56

7

我对它最喜欢的功能,是在web.config中加密设置 沿着线的东西的能力:

ASPNET_REGIIS -pe/myapprootvirtualdirector

和解密是-pd

加密只有在部署到服务器之后 - 因为除非您共享机器密钥,否则一台机器上的加密不会在另一台机器上有效。

2

请给您知道详细ASPNET_REGIIS.EXE步骤

aspnet_regiis.exe -h生成有关该实用程序的内部工作原理如下有用的信息的任何链接。

Microsoft (R) ASP.NET RegIIS version 4.0.30319.18408 
Administration utility to install and uninstall ASP.NET on the local machine. 
Copyright (C) Microsoft Corporation. All rights reserved. 


         -- ASP.NET REGISTRATION OPTIONS -- 


-i     Install this version of ASP.NET and update IIS 
        configuration at the root level to use this version of 
        ASP.Net. 



-ir     Install this version of ASP.NET, register only. Do not 
        change any web applications to use this version. 



-iru    Install this version of ASP.NET. If there are any existing 
        applications that uses ASP.NET, it will not change IIS 
        configuration to use this version. 
1

面对localhost未运行(即网站未加载)的问题。 我安装了Visual Studio和.NET框架后,我安装了IIS 10.0 Express。由于稍后安装了IIS,因此localhost未加载。 在路径C:\ Windows \ Microsoft.NET \ Framework64 \ v4.0下运行aspnet_regiis -i。30319> 并解决了这个问题