HttpContext.Current.Request.Url.Host returns a string of numbers

Posted by Jonathan Sewell on Stack Overflow See other posts from Stack Overflow or by Jonathan Sewell
Published on 2009-08-18T16:27:08Z Indexed on 2010/04/21 18:03 UTC
Read the original article Hit count: 450

Filed under:
|

I have a website that emails a link to the invoice when an order is complete.

The link should be http://mysite.com/QuoteAndBook/Confirmation?orderId=123

But for some reason it is:

http://204435-204435/QuoteAndBook/Confirmation?orderId=123

The host portion of the link is generated using HttpContext.Current.Request.Url.Host but I would expect that to return "mysite.com", not "204435-204435".

Any idea what's going on?

© Stack Overflow or respective owner

Related posts about iis

Related posts about url