Last week, I was faced with the challenge of determining the URL to the site (web) when I knew the URL to a document in SharePoint. I also happened to know the URL to the site collection, but I wanted to reliably get the URL to a web so I could get a ClientContext object for it. Why would...