Null reference exception when generating a url with UrlHelper.Action method
For some reason, when certain bots visit the site, generating a url with the UrlHelper.Action method raises a null exception from System.Web.HttpServerVarsCollection.Get . I've done some debugging and the call stack originiates with an attempt to get the 'HTTP_X_ORIGINAL_URL' from the HttpContextBase.Request.ServerVariables collection. If I visit the same address directly from a browser - no problem. The page is server and no error is logged. It only seems to occur when visited by a bot. Not sure if it's relevant or not, but the site was just migrated to IIS 7.5. Still using .NET 2.0 in