You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to use Microsoft.dism to apply an ESD format image.
A win32 exception was raised while calling the CreateFile method to deal with the ESD image: "An attempt was made to load a program with an incorrect format."
Issue isolation:
Use the same version of the dism.exe command from the system32 can apply the ESD image successfully.
"dism /apply-image /imagefile:*.esd /index:1 /applydir:c:"
The text was updated successfully, but these errors were encountered:
This is usually caused by a mismatch in processor architecture. Managed .NET Framework applications can target "AnyCPU" which will pick the correct architecture at runtime. However, the DISMAPI assemblies are native C++ applications that target x86 or x64 and can cause issues if your process is the wrong architecture.
Try one of the following:
Change <Platform> in your project to x64 instead of AnyCPU
Hi,
I am trying to use Microsoft.dism to apply an ESD format image.
A win32 exception was raised while calling the CreateFile method to deal with the ESD image: "An attempt was made to load a program with an incorrect format."
Issue isolation:
Use the same version of the dism.exe command from the system32 can apply the ESD image successfully.
"dism /apply-image /imagefile:*.esd /index:1 /applydir:c:"
The text was updated successfully, but these errors were encountered: