I need to know the path for
Request.AppRelativeCurrentExecutionFilePath. It gives the wrong file path when I retrieve any requests.
it gets the virtual path of the application root and makes it relative by using the tilde (~) notation for the application root.
so if your application is hosted at http://localhost/WebApp1 and you want to access Picture1.jpg in the root directory, using that will return ~/Picture1.jpg
string _directoryName = Request.AppRelativeCurrentExecutionFilePath + "Picture1.jpg" will return