S
Steve - DND
We're currently working on a project with v1.0 of the .Net Framework, and
are experiencing some issues with System.Uri. We have two Uri objects:
Uri uriBase = new Uri("http://localhost/VirtualDirectory/");
Uri uriDestination = new
Uri("http://localhost/VirtualDirectory/SomeFile.aspx");
When we do uriBase.MakeRelative(uriDestination) on one machine we end up
with "SomeFile.aspx", and on another machine we end up with
"../VirtualDirectory/SomeFile.aspx". Both of these are technically correct,
but it's been quite irritating since we now have to write code to deal with
both instances. Any thoughts on what is going on here? Is there some setting
somewhere to indicate how relative URLs are handled?
Thanks,
Steve
are experiencing some issues with System.Uri. We have two Uri objects:
Uri uriBase = new Uri("http://localhost/VirtualDirectory/");
Uri uriDestination = new
Uri("http://localhost/VirtualDirectory/SomeFile.aspx");
When we do uriBase.MakeRelative(uriDestination) on one machine we end up
with "SomeFile.aspx", and on another machine we end up with
"../VirtualDirectory/SomeFile.aspx". Both of these are technically correct,
but it's been quite irritating since we now have to write code to deal with
both instances. Any thoughts on what is going on here? Is there some setting
somewhere to indicate how relative URLs are handled?
Thanks,
Steve