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);
- Download TK NuGET package (or copy Toolkit DLLs to the bin directory) and recompile
- For Web App this must be configured to run in 32 or 64 bit via Tools -> Options -> Projects and Solutions -> Web Projects (screenshot below)
- Run project
Comments
0 comments
Please sign in to leave a comment.