Back to all blogs3 min read
Solution- System.BadImageFormatException- Could not load file or assembly
Make sure that you are using the correct tool path (i.e. installutil.exe) for installing the application.
Ankush Jain
Lead Software Engineer (VP) | Software Architect
Published Dec 20, 2018Updated Nov 24, 2026
Make sure that you are using the correct tool path (i.e. installutil.exe) for installing the application.
This issue normally occurs when we attempt to use 32 bit (/platform:x86) version of the tool to install a 64-bit application or a 64-bit (/platform:x64) version of the tool to install a 32-bit application.
Just confirm the path you are using is correct. There is a slight difference in both paths.
- C:WindowsMicrosoft.NETFrameworkv2.0.50727
- C:WindowsMicrosoft.NETFramework64v2.0.50727\