Remote .NET API fails at Session Open.

SOLVED

We have a Sage 300 v16 system. I am trying to use the .NET API to call it from another system.

I am running the following code;

Session s = new Session();

s.RemoteConnect(Server, User, Domain, Password);

s.Init("", "XY", "XY1000", "62A");

s.Open(User, Password, Company, DateTime.Today, 0);

When I run this code, minus the RemoteConnect call, on the same system as Sage, it works fine. When I run it on a remote machine, it fails at the Open call.

Using ILSpy, I can see that it fails access the COM object on the Sage system. Basically ACCPAC.Advantage.Server.Session.GetSessionInfo() fails at the line;

sessionInfo.SystemHelpURL = this._comSession.SystemHelpURL;

So, I made a small VB Script to do the same thing, which fails in exactly the same way;

Dim Session
Set Session = CreateObject("ACCPAC.Session")
Session.Init "", "XY", "XY1000", "62A"
MsgBox "System Help URL = " + Session.SystemHelpURL

I can access the other session properties, it just fails on the SystemHelpURL property.

Am I trying to use the remote API incorrectly?

Or is there something not correctly installed on the system that causes it to fail accessing this property?

Thanks,

Tim.