CodingWonders / DISMTools

The connected place for Windows system administration
GNU General Public License v3.0
463 stars 20 forks source link

Program exception #199

Open yyg1208 opened 3 days ago

yyg1208 commented 3 days ago

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.

CodingWonders commented 3 days ago

@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?