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

Exception Unhandled #1

Open
vmx17 opened this issue Dec 14, 2021 · 1 comment
Open

Exception Unhandled #1

vmx17 opened this issue Dec 14, 2021 · 1 comment

Comments

@vmx17
Copy link

vmx17 commented Dec 14, 2021

Hello! Thank you for this sample reference.
I'm annoying how to solve the exception that reveals at invoking. I suppose the cause is that resources in Project Reunion were drastically changed to move to WindowsAppSDK. (Should I update them to 0.86 or WAS1.0 ?)
the below is the exception message. (for x64 compile on VS2022)
---- from here ----
System.Reflection.TargetInvocationException
HResult=0x80131604
Message=Exception has been thrown by the target of an invocation.
Source=System.Private.CoreLib
StackTrace:
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean wrapExceptions, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& hasNoDefaultCtor)
at System.RuntimeType.CreateInstanceDefaultCtorSlow(Boolean publicOnly, Boolean wrapExceptions, Boolean fillCache)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, Boolean wrapExceptions)
at System.Activator.CreateInstanceT
at WinRT.WeakLazy`1.get_Value()
at Microsoft.UI.Xaml.Application._IApplicationStatics.get_Instance()
at Microsoft.UI.Xaml.Application.Start(ApplicationInitializationCallback callback)
at XamlBrewer.WinUI3.Navigation.Sample.Program.Main(String[] args) in C:\Users\355yamada\Documents\Visual Studio 2022\Projects\XamlBrewer.WinUI3.Navigation.Sample-master\XamlBrewer.WinUI3.Navigation.Sample\XamlBrewer.WinUI3.Navigation.Sample\obj\x64\Debug\net5.0-windows10.0.19041.0\App.g.i.cs:line 26

This exception was originally thrown at this call stack:
[External Code]

Inner Exception 1:
COMException: Class not registered (0x80040154 (REGDB_E_CLASSNOTREG))

@XamlBrewer
Copy link
Owner

Project was upgraded to WinAppSdk 1.2.

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

2 participants