[.Net Framework, MVC4] Connect XML path from App_Data Folder

I wanted to set path for loading XML file from .Net Framework, and searched for some ways to do that.

The way I did:
string orderPath = System.IO.Path.GetFullPath(Server.MapPath(“~/App_Data/XOrders.xml”));
var Orders = XElement.Load(orderPath)


ASP.NET MVC – Find Absolute Path to the App_Data folder from Controller

View original post

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s