I am having an issue even beginning an api session from the code below I get the above exception. The Actian Zen workgroup Engine has a lock on the file.
// the main session into the Sage 50 application
PeachtreeSession apiSession = new PeachtreeSession();
// start the session.
// with no application ID, you can only open Sample companies
apiSession.Begin("");
foreach (CompanyIdentifier ci in apiSession.CompanyList())
Console.WriteLine($"Company Name : {ci.CompanyName}");
Any help would be appreciated.
Thanks