SOS does not support the current target architecture

SOS does not support the current target architecture

If you use 64bit task manager to generate a dump file for the 32bit process, you will get the following error message when running a SOS extension command.

"SOS does not support the current target architecture."

To investigate further, you can first check if the process is 32bit or 64bit. Execute "lmvm clr" command and check clr.dll image path. In WOW OS, if the image path is under "Microsoft.NET\Framework", it is 32bit. And if it's under "Microsoft.NET\Framework64", it is 64bit. So the following means the process is 32bit.

0:000> lmvm clr
Browse full module list
start             end                 module name
00000000`72f00000 00000000`735ee000   clr        (deferred)             
    Image path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll

If you use 64bit task manager to create a dump file for the 32bit process, you will see the following SOS error when using SOS command.

0:000> .loadby sos clr
0:000> !clrstack
SOS does not support the current target architecture.

When launching Task Manager from Windows task bar, it is 64bit task manager. You will need to launch 32bit task manager by locating C:\Windows\SysWOW64\taskmgr.exe in File Explorer.

You have to use this 32bit task manager to get a 32bit dump.