locked
Context.Request.AppRelativeCurrentExecutionFilePath gives Incorrect path. RRS feed

  • Question

  • Hi,

    All of sudden Context.Request.AppRelativeCurrentExecutionFilePath in my machine is giving the path as 

    "~/Content/Setup%25252520and%25252520Monitoring/Parameter%25252520Maintenance/Parameter.aspx"

    string pagePath = HttpContext.Current.Server.UrlDecode(Context.Request.AppRelativeCurrentExecutionFilePath);

    Because of which Iam getting the following error. Iam using VS2012.

    The file '/Content/Setup%252520and%252520Monitoring/Parameter%252520Maintenance/Parameter.aspx' does not exist. 

    Till yesterday, it was giving the correct path as "/Content/Setup%20and%20Monitoring/Parameter%20Maintenance/Parameter.aspx".

    Any clues why is it appearing suddenly which has been working correct for few years ? Any system / machine settings or registry values have been changed ? Surprisingly this issue is noticed only in my machine in my team. Please help.

    Thanks

    Bhanu.

    • Moved by Caillen Monday, May 25, 2015 2:19 AM
    Friday, May 22, 2015 11:55 AM

Answers