Powershell - Assembly binding redirect NOT found in application configuration file

前端 未结 3 1378
情话喂你
情话喂你 2021-01-11 12:49

Got a problem here...

I have got a Powershell CmdLet that works when running in 32-bit mode and fails in 64-bit mode. Question is what the cause is and how it can

3条回答
  •  轮回少年
    2021-01-11 13:48

    On a 64-bit machine there are two configuration files:

    C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe.Config
    C:\Windows\syswow64\Windowspowershell\v1.0\powershell.exe.Config
    

    Have you edited both of them on the 64-bit machine?

    On 64-bit versions of Windows. 32 bit processes (like notepad++) are transparently redirected from C:\WINDOWS\System32 to C:\WINDOWS\SysWOW64 by the OS.

    You will need to make sure you edit both files using a 64-bit text editor like the builtin notepad.exe. This will guarantee you do not suffer from this subtle issue, which can cause confusion.

提交回复
热议问题