Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidOperationException: Cannot access part because parent package was closed. #229

Open
JPluess opened this issue Dec 14, 2023 · 0 comments

Comments

@JPluess
Copy link

JPluess commented Dec 14, 2023

Describe the bug

System.InvalidOperationException: Cannot access part because parent package was closed.
   at System.IO.Packaging.PackagePart.ThrowIfParentContainerClosed()
   at System.IO.Packaging.PackagePart.GetRelationshipHelper(String id)
   at System.IO.Packaging.PackagePart.RelationshipExists(String id)
   at OfficeRibbonXEditor.Documents.OfficePart.RemoveImage(String imageId) in C:\Users\FernA\agent\_work\1\s\src\OfficeRibbonXEditor\Documents\OfficePart.cs:line 149
   at OfficeRibbonXEditor.ViewModels.Documents.OfficePartViewModel.RemoveIcon(String id) in C:\Users\FernA\agent\_work\1\s\src\OfficeRibbonXEditor\ViewModels\Documents\OfficePartViewModel.cs:line 79
   at OfficeRibbonXEditor.ViewModels.Windows.MainWindowViewModel.ExecuteRemoveCommand() in C:\Users\FernA\agent\_work\1\s\src\OfficeRibbonXEditor\ViewModels\Windows\MainWindowViewModel.cs:line 562

To Reproduce
Please describe the steps that lead to the unhandled exception here, including example files if relevant.

Screenshots
If applicable, add screenshots to help explain how the unhandled exception occurred.

Additional context

  • Version: 1.9.0.1056
  • Runtime: .NET 6.0.25
  • Operating System: Microsoft Windows 10.0.22631
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant