dotMorten / WinUIEx

WinUI Extensions
https://dotmorten.github.io/WinUIEx
MIT License
602 stars 38 forks source link

Exception at startup #17

Closed tuggernuts closed 2 years ago

tuggernuts commented 2 years ago

First, thank you for sharing. It was working great!

So I had an issue with VS2022, which involved me having to re-install and fall back to 17.0.2 (could not create WinUI 3 projects in 17.0.4).

Anyway, I rolled back, got everything working again, but your extension methods throw exceptions now.

Call Stack: `

Document   | Name | Value | Type -- | -- | -- | --   | StackTrace | " at WinRT.Platform.RoGetActivationFactory(IntPtr runtimeClassId, Guid& iid, IntPtr* factory)\r\n at WinRT.WinrtModule.GetActivationFactory(IntPtr hstrRuntimeClassId)\r\n at WinRT.WinrtModule.GetActivationFactory(String runtimeClassId)\r\n at WinRT.BaseActivationFactory..ctor(String typeNamespace, String typeFullName)\r\n at Microsoft.UI.Windowing.AppWindow._IAppWindowStatics..ctor()\r\n at System.RuntimeType.CreateInstanceOfT()" | string

` I lost most of today dealing with getting VS2022 working again (requiring lots of reinstallations of other components), so I don't have much more to offer.

Thanks!

tuggernuts commented 2 years ago

This can close. I just created a new WinUI project, and this package works as expected. Not sure where it all went wrong, but I don't think its your issue. Thanks again for making this available.