System.IO.IOException: The process cannot access the file c:\sage\peachtree\company\~PVSW~.LOC because its being used by another process

SUGGESTED

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

Parents Reply Children
No Data