Hi,
I have Sage 50 premium 2016 installed in two machines with the company file residing in one of them. I can open the company from both computers without any problem using The local Sage50, in one machine it opens it from c:\sage\peachtree\company\elXXX and in the other it opens it from a network drive (k:\elXXX ). The problem I have is that from the remote machine I cannot access the company from the SDK (even as the company is open in Sage50)
This is my code:
var session = new PeachtreeSession();
session.Begin(appKeyID);
foreach (CompanyIdentifier ci in session.CompanyList())
{
Logger.Log("CompanyName: " + ci.CompanyName);
Logger.Log("DatabaseName: " + ci.DatabaseName);
Logger.Log("Path: " + ci.Path);
Logger.Log("ServerName: " + ci.ServerName);
}
and the problem is that CompanyList() is empty.
What can I do in this case?
Thank,
Ignacio