Bug 28487 - Mono fails to create a System.Uri object with `ms-app` prefix
Summary: Mono fails to create a System.Uri object with `ms-app` prefix
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: 3.12.0
Hardware: PC Mac OS
: Highest normal
Target Milestone: Untriaged
Assignee: Marek Safar
Depends on:
Reported: 2015-03-27 05:57 UTC by Prashant Cholachagudda
Modified: 2016-05-11 12:01 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Prashant Cholachagudda 2015-03-27 05:57:05 UTC
Mono fails to create a System.Uri object with `ms-app` prefix. Eg. ms-app://s-1-15-2-1613647288

## Sample code:
var uri = new Uri ("ms-app://s-1-15-2-1613647288");

## Stackrace:

System.UriFormatException: Invalid URI: The hostname could not be parsed.
  at System.Uri.Parse (UriKind kind, System.String uriString) [0x00020] in ///Library/Frameworks/Xamarin.iOS.framework/Versions/
  at System.Uri.ParseUri (UriKind kind) [0x00000] in ///Library/Frameworks/Xamarin.iOS.framework/Versions/
  at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00059] in ///Library/Frameworks/Xamarin.iOS.framework/Versions/
  at System.Uri..ctor (System.String uriString) [0x00000] in ///Library/Frameworks/Xamarin.iOS.framework/Versions/
  at ActionPackTest.AppDelegate.FinishedLaunching (UIKit.UIApplication application, Foundation.NSDictionary launchOptions) [0x00006] in /Users/prashantvc/Projects/ActionPackTest/ActionPackTest/AppDelegate.cs:73
  at at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62
  at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46
  at ActionPackTest.Application.Main (System.String[] args) [0x00008] in /Users/prashantvc/Projects/ActionPackTest/ActionPackTest/Main.cs:42
Comment 1 Marek Safar 2016-05-11 12:01:06 UTC
Fixed in master