esapi script not working after Eclipse upgrade
Dear Experts,
Our site recently upgraded from Eclipse 13.7 to 15.6. We have an esapi standalone script that does not work any more. I have updated the DLL files with the ones coming with the new Eclipse. To test it, I compiled and run the standalone script template generated by the Script Wizard in VS2017, it gives an error of:
Exception thrown: 'System.IO.FileNotFoundException' in esapi15_standalone_template.exe The program '[13608] esapi15_standalone_template.exe' has exited with code 0 (0x0).
The code is shown below. Could you give me some idea how to fix it? Thanks! --Lulin
using System; using System.Linq; using System.Text; using System.Collections.Generic; using System.Reflection; using VMS.TPS.Common.Model.API; using VMS.TPS.Common.Model.Types;
// TODO: Replace the following version attributes by creating AssemblyInfo.cs. You can do this in the properties of the Visual Studio project. //[assembly: AssemblyVersion("1.0.0.1")] //[assembly: AssemblyFileVersion("1.0.0.1")] //[assembly: AssemblyInformationalVersion("1.0")]
// TODO: Uncomment the following line if the script requires write access. // [assembly: ESAPIScript(IsWriteable = true)]
namespace esapi15_standalone_template { class Program { [STAThread] static void Main(string[] args) { try { using (Application app = Application.CreateApplication()) { Execute(app); } } catch (Exception e) { Console.Error.WriteLine(e.ToString()); } } static void Execute(Application app) { // TODO: Add your code here. Console.WriteLine("This data mining application queries the treatment history for each patient in the Aria database and writes"); } } }