https://bugzilla.novell.com/show_bug.cgi?id=402263
Summary: Uri: UriFormatException when URI contains Windows path
Product: Mono: Class Libraries
Version: SVN
Platform: All
OS/Version: Windows
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
On Windows, when the URI contains a Windows path the following exception is
reported:
Unhandled Exception: System.UriFormatException: Invalid URI: Invalid port
number
at System.Uri.Parse (UriKind kind, System.String uriString) [0x00000]
at System.Uri.ParseUri (UriKind kind) [0x00000]
at System.Uri.Parse () [0x00000]
at System.Uri..ctor (System.String uriString, Boolean dontEscape) [0x00000]
at System.Uri..ctor (System.String uriString) [0x00000]
at (wrapper remoting-invoke-with-check) System.Uri:.ctor (string)
at Program.Main (System.String[] args) [0x00000]
To reproduce, compile and run the following code:
using System;
class Program
{
static void Main (string [] args)
{
Uri uri = new Uri (@"file://D:\mono");
Console.WriteLine (uri.ToString ());
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs