aspnet_regiis.exe 是做什么的

发布于 2024-09-15 01:40:02 字数 177 浏览 3 评论 0原文

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

What does aspnet_regiis.exe do exactly other than updating the document mappings to correct aspnet_isapi.dll version, is updating the ASP.NET version from inetmgr same as running aspnet_regiis, I could not find any blog post or article describing the steps this particular batch command does. Please give any links you know of detailing the steps of aspnet_regiis.exe

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

冬天旳寂寞 2024-09-22 01:40:03

注册使用IIS注册ASPNET扩展。

It reg isters ASPNET extensions with IIS.

空城缀染半城烟沙 2024-09-22 01:40:03

它还可以修复 aspnet 的安装。

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

It can also repair an install of aspnet.

Sometimes it just breaks and you need to run aspnet_regiis -i or -ir to fix it.

月下伊人醉 2024-09-22 01:40:03

请提供您知道的详细说明 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.

Please give any links you know of detailing the steps of aspnet_regiis.exe

aspnet_regiis.exe -h generates the following helpful information about how the utility works internally.

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.
浅浅 2024-09-22 01:40:03

我遇到了 localhost 未运行的问题(即网站未加载)。

在安装了 Visual Studio.NET Framework 后,我安装了 IIS 10.0 express

由于稍后安装了 IISlocalhost 未加载。

我在路径

C:\Windows\Microsoft.NET\Framework64\v4.0.30319

下运行 aspnet_regiis -i这成功解决了问题。

I Faced an issue where localhost was not running(i.e. the website did not load).

I had installed IIS 10.0 express after I had installed Visual Studio along with .NET framework.

Due to this later installation of IIS , localhost did not load.

I ran aspnet_regiis -i under the path

C:\Windows\Microsoft.NET\Framework64\v4.0.30319

This sucessfully solved the issue.

神回复 2024-09-22 01:40:03

对我的 WebConfig 文件的某些部分(在我的例子中是连接字符串)进行加密对我很有用。

命令:

-- Go to regiss.exe directory
C:\Users\myuser>cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319

-- Execute the encryption
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -pef "connectionStrings" "C:\Users\MyPublishPath"

这将从以下位置加密您的 conecctionStrings:

<connectionStrings>
  <add name="MyProjectDB" connectionString="Data Source=192.168.X.X;Initial Catalog=MyProjectDB;User ID=User;Password=Pass" providerName="SqlClient" />
</connectionStrings>

到此:

<connectionStrings configProtectionProvider="RsaProtectedConfigurationProvider">
  <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns="http://www.w3.org/2001/04/xmlenc#">
  <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
  <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
      <KeyName>Rsa Key</KeyName>
    </KeyInfo>
    <CipherData>
      <CipherValue>ml2OVkgtMhrLcrTQfop5eR0D6eq6Q0a3qSOejeiMrB532H2LOHg8odKoDDTARbTrrZ1/x11Ur7GMHAYeemyBbXT5HCzbNGkMJfRBc=</CipherValue>
    </CipherData>
  </EncryptedKey>
</KeyInfo>
<CipherData>
  <CipherValue>H40nekXYEPWO+wbAh78FyzRM8s2t+UEo6h8NhN52BvbTqVOGlhS6+fBfbqdEvH5STExSeY2ftSUXEzNZ+PT6t2HgcpWk45FC3yw==</CipherValue>
</CipherData>

It is useful to me to encrypt portions of my WebConfig file (In my case the connectionStrings).

Commands:

-- Go to regiss.exe directory
C:\Users\myuser>cd C:\Windows\Microsoft.NET\Framework64\v4.0.30319

-- Execute the encryption
C:\Windows\Microsoft.NET\Framework64\v4.0.30319>aspnet_regiis.exe -pef "connectionStrings" "C:\Users\MyPublishPath"

This will encrypt your conecctionStrings from this:

<connectionStrings>
  <add name="MyProjectDB" connectionString="Data Source=192.168.X.X;Initial Catalog=MyProjectDB;User ID=User;Password=Pass" providerName="SqlClient" />
</connectionStrings>

To this:

<connectionStrings configProtectionProvider="RsaProtectedConfigurationProvider">
  <EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Element" xmlns="http://www.w3.org/2001/04/xmlenc#">
  <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" />
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
  <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#">
    <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
      <KeyName>Rsa Key</KeyName>
    </KeyInfo>
    <CipherData>
      <CipherValue>ml2OVkgtMhrLcrTQfop5eR0D6eq6Q0a3qSOejeiMrB532H2LOHg8odKoDDTARbTrrZ1/x11Ur7GMHAYeemyBbXT5HCzbNGkMJfRBc=</CipherValue>
    </CipherData>
  </EncryptedKey>
</KeyInfo>
<CipherData>
  <CipherValue>H40nekXYEPWO+wbAh78FyzRM8s2t+UEo6h8NhN52BvbTqVOGlhS6+fBfbqdEvH5STExSeY2ftSUXEzNZ+PT6t2HgcpWk45FC3yw==</CipherValue>
</CipherData>

月朦胧 2024-09-22 01:40:02

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

aspnet_regiis -pe /myapprootvirtualdirector

解密是-pd

仅在部署到服务器后加密 - 因为一台计算机上的加密在另一台计算机上无效,除非您共享计算机密钥。

My favorite feature of it, is the ability to encrypt settings in web.config
something along the lines of:

aspnet_regiis -pe /myapprootvirtualdirector

and decrypt is -pd

encrypt only after deployment to the server - as encrypting on one machine won't be valid on the other unless you share machine keys.

離殇 2024-09-22 01:40:02

来自 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 的工作原理,就可以用于大多数情况。

From MSDN reference:

When multiple versions of the .NET Framework are executing side-by-side on a single computer, the ASP.NET ISAPI version mapped to an ASP.NET application determines which version of the common language runtime (CLR) is used for the application. The ASP.NET IIS Registration Tool (Aspnet_regiis.exe) allows an administrator or installation program to easily update the script maps for an ASP.NET application to point to the ASP.NET ISAPI version that is associated with the tool. The tool can also be used to display the status of all installed versions of ASP. NET, register the ASP.NET version that is coupled with the tool, create client-script directories, and perform other configuration operations.

From Scott Forsyth's blog:

Starting in the first version of ASP.NET, Microsoft has provided a tool to control which version of the framework is registered in IIS. This tool, aspnet_regiis.exe, is quite flexible and with the right understanding of how IIS and ASP.NET work, can be used for most any situation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文