Within your Web project add the following:


string baseDir = System.AppDomain.CurrentDomain.BaseDirectory;

string Path = baseDir + "bin";

string CurrentPath = System.Environment.GetEnvironmentVariable("Path");

string strtkpath = Path;

System.Environment.SetEnvironmentVariable("Path", strtkpath + ";" + CurrentPath);

APToolkitNET.Toolkit tk = new APToolkitNET.Toolkit(strtkpath);


  1. Download TK NuGET package (or copy Toolkit DLLs to the bin directory) and recompile
  2. For Web App this must be configured to run in 32 or 64 bit via Tools -> Options -> Projects and Solutions -> Web Projects (screenshot below)
  3. Run project