aspnet_regiis.exe 是做什么的
除了更新文档映射以正确的 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
它注册使用IIS注册ASPNET扩展。
It reg isters ASPNET extensions with IIS.
它还可以修复 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.
aspnet_regiis.exe -h
生成以下有关该实用程序内部工作原理的有用信息。aspnet_regiis.exe -h
generates the following helpful information about how the utility works internally.我遇到了
localhost
未运行的问题(即网站未加载)。在安装了
Visual Studio
和.NET Framework
后,我安装了IIS 10.0 express
。由于稍后安装了
IIS
,localhost
未加载。我在路径
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 installedVisual Studio
along with.NET framework
.Due to this later installation of
IIS
,localhost
did not load.I ran
aspnet_regiis -i
under the pathC:\Windows\Microsoft.NET\Framework64\v4.0.30319
This sucessfully solved the issue.
对我的 WebConfig 文件的某些部分(在我的例子中是连接字符串)进行加密对我很有用。
命令:
这将从以下位置加密您的 conecctionStrings:
到此:
It is useful to me to encrypt portions of my WebConfig file (In my case the connectionStrings).
Commands:
This will encrypt your conecctionStrings from this:
To this:
我最喜欢的功能是能够加密 web.config 中的设置
大致如下:
仅在部署到服务器后加密 - 因为一台计算机上的加密在另一台计算机上无效,除非您共享计算机密钥。
My favorite feature of it, is the ability to encrypt settings in web.config
something along the lines of:
encrypt only after deployment to the server - as encrypting on one machine won't be valid on the other unless you share machine keys.
来自 MSDN 参考:
来自 Scott Forsyth 的博客:
From MSDN reference:
From Scott Forsyth's blog: