I'm using this code as part of class which should connect to an Access database:
string path = HttpContext.Current.Server.MapPath("App_Data");
The App_Data folder is in the project, and contains the database, but somehow the MapPath()
returns null
.
How can I solve this?