Quantcast
Channel: Sage 50 US
Viewing all articles
Browse latest Browse all 18012

Forum Post: C# GetApplication returns null with Peachtree 2008

$
0
0
I am creating an automated import of Purchase Invoices for a client who is using Peachtree 2008 Premier, and I've downloaded Sage 50 2016.0 SDK. I'm using the credentials that were provided when I downloaded the SDK and the function returns NULL. When I use the credentials of a current user, the function causes a Not Authorized error. I have searched the computer for the Interop.PeachwServer.dll and I cannot find it. So, is the SDK backwards compatible with their version (15 internally)? What options do I have available to me? public static IApplication ApplicationLogin( string pUserName, string pUserPassword) { ILoginSelector lLoginSelector = new LoginSelector (); ILogin lLogin = lLoginSelector.GetCurrentLoginObject() as ILogin ; return lLogin.GetApplication(pUserName, pUserPassword) as IApplication ; }

Viewing all articles
Browse latest Browse all 18012

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>