AppCmd:框架与 Framework64

发布于 2024-09-12 04:21:08 字数 293 浏览 2 评论 0原文

我安装了一批新服务器,我终于尝试尽可能多地自动化流程。其中一部分包括对 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 技术交流群。

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

发布评论

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

评论(1

拒绝两难 2024-09-19 04:21:08

答案既简单又有趣又令人沮丧。 :-)

我总是忘记,在 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, and SysWow64 is the 32bit only apps for the system.

So, System32\inetsrv\appcmd works with the Framework64 files, and SysWow64\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.

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