BOI in C# nLogon line from Sage's samples seems to want to pop up a login box, but I need a silent server app connection.
In the Sage example:
oSS.GetType().InvokeMember(""nLogon"", System.Reflection.BindingFlags.InvokeMethod, null, oSS, null);
I tried:
oSS.GetType().InvokeMember(""nLogon"", System.Reflection.BindingFlags.InvokeMethod, null, oSS, new object[] { app..Properties.Settings.Default.SageUser, app..Properties.Settings.Default.SagePW });
The properties do have correct values.
Error is the extremely helpful ""Exception has been thrown by the target of an invocation""
Any ideas on what the correct syntax is?