I have some asp.net c# code that grabs the path name and uses it for various authorization and authentication tasks. In our web site project, this is what returns the path (with extension, for example: index.aspx?querystringparam1=3&qp2=4):
string strPath = HttpContext.Current.Request.RawUrl;
This used to return "index.aspx?querystringparam1=3&qp2=4".
However, in our work to convert to a web application project, that same line of code is now returning the url WITHOUT the extension: "index?querystringparam1=3&qp2=4".
How I can get the old behavior to return? It seems to be an IIS setting somewhere because going back to the website project on the same IIS instance does not revert to the old functionality.