Skip to content

Error "ms-windows-store scheme is not supported" when URL shortener is redirecting to Microsoft Store #165

@gschizas

Description

@gschizas

When a URL shortener is redirecting to Microsoft (App) Store, and the network activity is enabled (the "Disable Network Activity" checkbox in settings is unselected), the application crashes with the following message (shortening exception stacktrace for clarity):

System.AggregateException: One or more errors occurred. (The 'ms-windows-store' scheme is not supported.)

 ---> System.NotSupportedException: The 'ms-windows-store' scheme is not supported.
   at BrowserPicker.UrlHandler.FindIcon(CancellationToken cancellationToken) in D:\a\BrowserPicker\BrowserPicker\src\BrowserPicker\UrlHandler.cs:line 133
   at BrowserPicker.UrlHandler.FindIcon(CancellationToken cancellationToken) in D:\a\BrowserPicker\BrowserPicker\src\BrowserPicker\UrlHandler.cs:line 172
   at BrowserPicker.UrlHandler.Start(CancellationToken cancellationToken) in D:\a\BrowserPicker\BrowserPicker\src\BrowserPicker\UrlHandler.cs:line 111
   at BrowserPicker.App.RunLongRunningProcesses() in D:\a\BrowserPicker\BrowserPicker\src\BrowserPicker.App\App.xaml.cs:line 157

This is easily reproducible if you try to download the Minecraft launcher via the aka.ms URL shortener which redirects to the Microsoft Store page: ms-windows-store://pdp/?ProductId=9PGW18NPBZV5&ref=launcher

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions