‘An attempt was made to load a program with an incorrect format’ when installing Visual Studio 2022 extension

-- -- 877 Reputation points
2022-08-19T22:46:21.577+00:00

Hi

Every time I try to install a Visual Studio 2022 extension I get error below at the end. These extensions are all legitimate official releases from established suppliers.

Here is error log for Microsoft Installers for VS 2022 extension;

19/08/2022 23:21:17 - Microsoft VSIX Installer  
19/08/2022 23:21:17 - -------------------------------------------  
19/08/2022 23:21:17 - vsixinstaller.exe version:  
19/08/2022 23:21:17 - 17.3.2092  
19/08/2022 23:21:17 - -------------------------------------------  
19/08/2022 23:21:17 - Command line parameters:  
19/08/2022 23:21:17 - G:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\vsixinstaller.exe,/appidinstallpath:G:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe,/skuName:Community,/skuVersion:17.3.32804.467,/appidname:Microsoft Visual Studio Community 2022,/culture:en-US,/noep,C:\Users\Administrator\AppData\Local\Temp\VSIXze2bsfvq.vsix  
19/08/2022 23:21:17 - -------------------------------------------  
19/08/2022 23:21:17 - Microsoft VSIX Installer  
19/08/2022 23:21:17 - -------------------------------------------  
19/08/2022 23:21:18 - System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)  
   at VSIXInstaller.App.SetGlobalLogger(IInteropLogger logger)  
   at VSIXInstaller.App.Initialize(Boolean isRepairSupported)  
   at VSIXInstaller.App.Initialize()  
   at System.Threading.Tasks.Task`1.InnerInvoke()  
   at System.Threading.Tasks.Task.Execute()  
  

How can I fix this and get the extensions installed?

Thanks

Regards

232920-extension-install-error.png

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,522 questions
{count} vote