AppCmd:框架与 Framework64
我安装了一批新服务器,我终于尝试尽可能多地自动化流程。其中一部分包括对 machine.config 进行一些更改,例如在 connectionStrings 上设置 configSource 以及在 lb 池中设置计算机密钥。
看来,在 64 位操作系统上,appcmd 仅影响 Framework64 目录中的配置,这在您运行 32 位应用程序之前都没有问题。我需要更改 Framework 和 Framework64 目录中的配置。是否有一个秘密参数(例如 /commit:MACHINE32 或其他东西)可以用来告诉 appcmd 要搞乱哪个配置?
I have a batch of new server getting installed and I'm finally trying to automate as much of at process as possible. Part of that includes making some changes to machine.config, like setting configSource on connectionStrings and setting the machine keys across a lb pool.
It appears that on a 64bit os, appcmd only effects the config in the Framework64 directory, which is fine until you have a 32bit app running. I need to change the config in both the Framework and the Framework64 directories. Is there a secret argument (like /commit:MACHINE32 or something) that you can use to tell appcmd which config to mess with?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案既简单又有趣又令人沮丧。 :-)
我总是忘记,在 64 位 Windows 上,
System32
是 64 位,而SysWow64
是系统中唯一的 32 位应用程序。因此,
System32\inetsrv\appcmd
适用于 Framework64 文件,SysWow64\inetsrv\appcmd
适用于 Framework 文件。在两者中运行相同的命令来更新两个框架配置文件,至少对于 APPHOST 和 WEBROOT 以及 MACHINE 提交路径。
The answer is both easy, amusing and depressing. :-)
I keep forgetting that on 64bit Windows,
System32
is 64bit, andSysWow64
is the 32bit only apps for the system.So,
System32\inetsrv\appcmd
works with the Framework64 files, andSysWow64\inetsrv\appcmd
works with the Framework files.Run the same command in both to update both framework config files, at least for APPHOST and WEBROOT and MACHINE commit paths.