I have a problem. Not very big but didn't find any answer.
I want to sore some key value pair in file Data.xml and I have saved it at root level. When I am trying to use code below.
XDocument xmlDoc = new XDocument();
xmlDoc.Load("Data.xml");
Instead of checking at project root level it is checking for some other location. I tried current directory and environment.current path. But it didn't help. I don't want to specify full path. Because when application will go live I don't want to change it. I need to use data.xml so that if values got changed we will just replace the data.xml so get new values.