Q:

why the following fails

 Uri test = new Uri("http%3A%2F%2F100.100.1.1%3A8080");

An unhandled exception of type 'System.UriFormatException' occurred in System.dll
Additional information: Invalid URI: The format of the URI could not be determined.
Anyone know why I cannot pass in a URL encoded string to the constructor of Uri?

A:

Do not escape it and try using http://100.100.1.1:8080. 

