Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more: , +
Hello,

I am developing a management system work online. Developing using ASP.net.

I created a .XML file to store some of my setting. It was working file in local system but after publishing I dont know how to point to the file.

I placed the file inside the App_data folder.

Can any one help me to find the path
Posted

 
Share this answer
 
Comments
dineshkumar51 26-Feb-14 3:35am    
Thank you. the link explain about all folders
Maciej Los 26-Feb-14 3:37am    
You're welcome ;)
If it was helpful, please accept my answer as a solution (green button).
C#
'~/App_data/your_file.xml'
 
Share this answer
 
Comments
dineshkumar51 26-Feb-14 3:33am    
{System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\~\App_Data\setting.xml'.

I am getting this error
Kornfeld Eliyahu Peter 26-Feb-14 3:39am    
Use MapPath on it - http://msdn.microsoft.com/en-us/library/system.web.httpserverutility.mappath(v=vs.110).aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900