Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: UriFormatException using Request.Url.Host


Message #1 by mgorham@c... on Wed, 1 May 2002 18:07:54
Wondering if any others have ran into this problem.  Some 
browsers get two URLs in their HOST_NAME Header ... don't 
ask me how ... but it's comma delimited ... looks like 
this "www.consumerreview.com,www.consumerreview.com".  So 
this throws the System.UriFormatException when using 
Request.Url.Host.  Now, given this only happens for 
certain browsers ... but it sure seems lame to have to 
wrap a try stmt around each Request.Url.Host call.  And I 
don't want to have to write a URL wrapper class.

Is this a site configuration issue?

Thanks and email me if you have a fix,

Mike

  Return to Index