I'm using C#.
I can run the site with my Access Datasource, but when I try to use the same datasource via C#, my module that is emphatic about not finding the HttpRuntime assembly when trying to locate my Access Datasource.
mConnectionString += "Data Source=" + System.Web.HttpRuntime.AppDomainAppPath + mProviderPath.Replace("~\\", "") + mDatabaseFilename;
The core Framework (written in VB.net) uses the same object, but when compiled, VS.net wants me to add an assembly reference. And System.Web is already there!
I tried using Server.MapPath, but that's just as foreign to the compiler.
Currently I'm hardcoding the path to my database but there must be another way. I'm sure it is something silly, but I don't know what it is.
TIA,
Bob