I have a site setup in IIS to work in http://localhost/WebApplication6. In my web application, I have a handler (implements IHttpHandler). When I print context.Request.Url.AbsolutePath, I get /WebApplication6/whaetever. I want to crop /WebApplication6(local site name). How can i do this? Is there a way to get the "WebApplication6" bit so that I know what to trim? (inside IHttpHandler.ProcessRequest ).
source
share