System.IO.IOException: The specified file could not be encrypted.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
at DISMTools.MainForm.GetPackageDisplayName(String PackageName, String DisplayName)
at DISMTools.GetAppxPkgInfoDlg.ListBox1_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ListBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ListBox.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Error Message: The specified file could not be encrypted.
Error Code (HRESULT): 80071770
Program information:
DISMTools Version: 0.5.1.24112
Preview release? No
Branch: stable
Build time: 241122-1520
Portable copy? Yes
Machine information:
Computer manufacturer: Micro-Star International Co., Ltd.
Computer model: Stealth 16Studio A13VF
BIOS name/description: E15F2IMS.10E E15F2IMS.10E
System Management BIOS (SMBIOS) version: E15F2IMS.10E
Operating system information:
OS name: Microsoft Windows 11 IoT Enterprise LTSC
OS version: 10.0.26100.0
OS Platform: Win32NT
Is a 64-bit system? Yes
Processor information:
Processor name: 13th Gen Intel(R) Core(TM) i9-13900H
Processor caption: Intel64 Family 6 Model 186 Stepping 2
This information is gathered to help isolate the issue to a specific hardware or software configuration. No information that can be used to identify the user or the exact system is gathered.
If you don't want to send this information to the developers, paste the text that was copied to the clipboard in a text editor, remove this information, and copy the new text again.
How did it happen? What steps did you perform in order to experience this problem?
Error occurs when pressing "Get AppX Package Information" and selecting the MSI Center package.
@yyg1208, I don't run into this issue and #200 on standard images and VMs. I'll add exception handling to the function in question, but can you give me more information about those applications in this issue?
System.IO.IOException: The specified file could not be encrypted.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost) at DISMTools.MainForm.GetPackageDisplayName(String PackageName, String DisplayName) at DISMTools.GetAppxPkgInfoDlg.ListBox1_SelectedIndexChanged(Object sender, EventArgs e) at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e) at System.Windows.Forms.ListBox.WmReflectCommand(Message& m) at System.Windows.Forms.ListBox.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Error Message: The specified file could not be encrypted.
Error Code (HRESULT): 80071770
Program information:
Machine information:
Operating system information:
Processor information:
This information is gathered to help isolate the issue to a specific hardware or software configuration. No information that can be used to identify the user or the exact system is gathered.
If you don't want to send this information to the developers, paste the text that was copied to the clipboard in a text editor, remove this information, and copy the new text again.
How did it happen? What steps did you perform in order to experience this problem? Error occurs when pressing "Get AppX Package Information" and selecting the MSI Center package.