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

Error HRESULT e_fail has been returned from a call to a COM component when double-clicking Package.appxmanifest #19137

Open
Mike-E-angelo opened this issue Dec 27, 2024 · 1 comment
Labels
area/vswin Categorizes an issue or PR as relevant to Visual Studio for Windows difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools

Comments

@Mike-E-angelo
Copy link

Current behavior

Upon double-clicking the Package.appxmanifest file in an Uno project an error is thrown and dialog shown to user:

image

Expected behavior

No error is thrown and Package.appxmanifest is loaded.

How to reproduce it (as minimally and precisely as possible)

Load this SLN:
https://github.com/DragonSpark/Framework/blob/issues/reported/uno/19066/The%20DragonSpark%20Framework.sln

Then double-click this file in Visual Studio:
https://github.com/DragonSpark/Framework/blob/issues/reported/uno/19066/UnoApp1/UnoApp1/Package.appxmanifest

Workaround

None Known

Works on UWP/WinUI

None

Environment

Other

NuGet package version(s)

SDK 5.5.56

Affected platforms

Windows (WinAppSDK)

IDE

Visual Studio 2022

IDE version

Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.12.3

Relevant plugins

No response

Anything else we need to know?

Thank you for your efforts out there. 🙏

I have reported this here to Visual Studio:
https://developercommunity.visualstudio.com/t/Error-HRESULT-e_fail-has-been-returned/10819926

Upon searching I found this issue:
https://developercommunity.visualstudio.com/t/Continually-getting-Error-HRESULT-E_FAI/10733627

And this issue:
https://developercommunity.visualstudio.com/t/Double-clicking-on-a-PackageAppxmanifes/10658683

Seems like this is a recurring/common issue with Uno and upon creating a new SLN from the project generator everything works as expected and I am able to view/design the Package.appxmanifest file.

Because of this I am wondering if there is something to do with my framework. 🤔 So, reporting here as well in case there is something Uno-related.

@Mike-E-angelo Mike-E-angelo added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Dec 27, 2024
@Mike-E-angelo
Copy link
Author

Welp this is weird. In the SLN that was working, now I get an error there, too. Only this time I had the file open and I got a stack trace:

An error occurred in 'UnoApp2' while attempting to open 'Package.appxmanifest'
System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
   at Microsoft.VisualStudio.PlatformUI.Packages.ShellService.EditorFactories.EditorFactory.<CreateEditorInstanceAsync>d__43.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.<>c__DisplayClass86_0.<<CreateEditorInstanceAsync>g__CreateEditorInstanceAsync|1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.<CreateEditorInstanceAsync>d__86.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.<LoadDocumentFrameInternalAsync>d__85.MoveNext()

@MartinZikmund MartinZikmund added area/vswin Categorizes an issue or PR as relevant to Visual Studio for Windows project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/vswin Categorizes an issue or PR as relevant to Visual Studio for Windows difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/core-tools 🛠️ Categorizes an issue or PR as relevant to core and tools
Projects
None yet
Development

No branches or pull requests

2 participants