I want to specify the path to the file in my application in the Web.Config file, and then call this path in the controller. From what I found on the Internet, I am most of all there.
Web.config
<appSettings> <add key="filePath" value= "~/App_Data/Physicians.xml" /> </appSettings>
controller
//Path of the document string xmlData = ConfigurationManager.AppSettings["filePath"].ToString();
However, this indicates an incorrect location.

How can I point this to a file that I saved in the App_Data folder, starting from the root of my application?
madvora
source share