I'm working on a .net MAUI project. Set to release, I can build and deploy my project, and created a publish .msix for the Microsoft Store.
I received an update from Visual studio 2022 (17.14.9), and installed it.
When I wanted to deploy my app to create screenshots, it failed with this error:
WinRT information: No COM Servers are registered for this app.
I didn't change anything on my project.
To resolve this issue:
None of them resolved my issue.
So, how to fix this issue?
My issue concerned the CommunityToolkit.
I was using Toast on Windows
My package.appxmanifest
was broken.
The value inside the field "Executable" of <com:Extension Category="windows.comServer"> was "YOUR-PATH-TO-EXECUTABLE".
<Applications>
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="$targetentrypoint$"\>
<uap:VisualElements
DisplayName="$placeholder$"
Description="$placeholder$"
Square150x150Logo="$placeholder$.png"
Square44x44Logo="$placeholder$.png"
BackgroundColor="transparent"\>
<uap:DefaultTile Square71x71Logo="$placeholder$.png" Wide310x150Logo="$placeholder$.png" Square310x310Logo="$placeholder$.png" /\>
<uap:SplashScreen Image="$placeholder$.png" /\>
</uap:VisualElements\>
<Extensions>
<!-- Specify which CLSID to activate when notification is clicked -->
<desktop:Extension Category="windows.toastNotificationActivation">
<desktop:ToastNotificationActivation ToastActivatorCLSID="6e919706-2634-4d97-a93c-2213b2acc334" /\>
</desktop:Extension>
<com:Extension Category="windows.comServer">
<com:ComServer\>
<com:ExeServer Executable="MyApp\\MyApp.exe" DisplayName="$targetnametoken$" Arguments="----AppNotificationActivated:"\>
<com:Class Id="6e919706-2634-4d97-a93c-2213b2acc334" /\>
</com:ExeServer\>
</com:ComServer\>
</com:Extension\>
</Extensions>
</Application\>
</Applications>
I changed it with "MyAppFolder/MyApp.exe", and it resolved my issue.