aspnet_regiis.exe做了什么

Kir*_*rti 19 asp.net iis version aspnet-regiis.exe

除了更新文档映射以更正aspnet_isapi.dll版本之外,aspnet_regiis.exe正在执行的操作是从inetmgr更新ASP.NET版本与运行aspnet_regiis相同,我找不到任何博客文章或文章描述此特定批处理命令的步骤确实.请提供详细说明aspnet_regiis.exe步骤的链接

Ada*_*SFT 15

我最喜欢的功能是能够加密web.config中的设置:

aspnet_regiis -pe/myapprootvirtualdirector

和解密是-pd

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

  • 要仅加密您可以使用的连接字符串:aspnet_regiis -pe "connectionStrings" -pkm (2认同)

tch*_*kch 13

来自MSDN参考:

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

来自Scott Forsyth的博客:

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

  • **aspnet_regiis.exe** 对于安全性也非常有用......它可用于加密全局、机器级配置文件(机器/ web.config 和自定义配置文件)等 (4认同)

ggo*_*alv 5

isters ASPNET扩展与IIS

  • 这不就是他所说的“除此之外”吗?:P (2认同)

Jos*_*hua 5

它还可以修复 aspnet 的安装。

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


ste*_*hen 5

请提供您知道的详细说明 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.
Run Code Online (Sandbox Code Playgroud)