Windows.System.Launcher.LaunchUriAsync() acces denied

Since MarketplaceSearchTask is deprecated in windows phone 8.1 i searhed for new api to launch webpage in a browser and to open marketplace. According to the internet
Task.Run(async () =>
{
await Windows.System.Launcher.LaunchUriAsync(new Uri(“https://www.facebook.com/alienated2/”));
}).Wait(); and Task.Run(async () =>
{
var uri = new Uri(string.Format(@“ms-windows-store:search?keyword={0}”, “ebondust”));
await Windows.System.Launcher.LaunchUriAsync(uri);
}).Wait(); should work. But for some reason im getting acces is denied error when trying to execute this commands and cant find out why. Does anyone have any idea how to fix it or achieve this functionality in monogame some other way?

google’s first result for LaunchUriAsync acces denied

https://social.msdn.microsoft.com/Forums/en-US/1155a521-1eb1-4b71-9a4e-7c90a565fca2/launchuriasync-isnt-doing-anything?forum=winappswithcsharp