Problems with Microsoft Store and Unhandled Errors

Tobias Enriquez 1 Reputation point
2022-07-11T01:37:27.207+00:00

Hello there,
I have been working on making a MAUI based UPNP Port Mapper using Open.NAT, and I have ran into a problem that prohibits me from releasing the app onto the Microsoft Store properly. It shows a Internal 500 Error when calling GetAllMappingsAsync, and then with a sequence of other Mapping Errors. No other piece of my program causes this, and trying to catch it does nothing, even when I directly tried to catch it in the libary source code and then recompiled it. After trying that, I just disabled the "breaking on errors" in Visual Studio and my program worked just fine! But when I compiled it all to an MSIX and sent it off to the Microsoft Store the problem reemerged, and my program just kept crashing. This only happens when installed from the Microsoft Store and never anywhere else, even from the MSIX.

Any one have suggestions? Thank you so much in advance.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,927 questions
Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
877 questions
{count} votes