为什么我无法在 64 位 Windows 上打开 applicationhost.config 文件?
在 x64 Windows 下,某些路径被指定为 64 位路径,并且一个 32 位进程,如 Visual Studio,每当 C:\windows\system32 被 Windows 重定向到 C:\windows\SysWOW64参考。32 位进程认为它正在查看 C:\windows\system32\inetsrv\config,当它被赋予 C:\windows\SysWOW64\inetsrv\config; 它确实不包含我们所追求的那些配置文件。
解决(归功于罗伯特麦克默里):
打开 64 位命令提示符并执行以下命令:
cd /d "%systemdrive%\windows\syswow64\inetsrv"
move config configx86
MKLINK /d Config "%systemdrive%\windows\system32\inetsrv\Config"
Run Code Online (Sandbox Code Playgroud)
应该报
symbolic link created for Config <<===>> C:\windows\system32\inetsrv\Config
Run Code Online (Sandbox Code Playgroud)
这有效地重命名了 32 位配置目录,因此该名称的符号链接可以代替它重定向回我们真正感兴趣的 64 位路径。
| 归档时间: |
|
| 查看次数: |
4187 次 |
| 最近记录: |