Hello,
I recently subscribed to the Sage Silver Partner program. I have installed the Sage-50-US 2014 app that came with the program. I have also opened the sample app CSSDK that utilizes the COM interface SDK (because I want to create/import Purchase Invoices which can only be done in COM Interface).
When I have my new version of Sage running, then when I fire up the CSSDK sample app, it runs and connects fine and returns data from my Sage-50 App. However, when I do not have my Sage-50 app running and I try to connect the sample app to my sage data I get the following error:
System.Runtime.InteropServices.COMException was unhandled
HResult=-2147207450
Message=Unknown Error
Source=PeachtreeAccounting.LoginP.21
ErrorCode=-2147207450
StackTrace:
at Interop.PeachwServer.ILogin.GetApplication(String sName, String sPassword)
at CSSDK.Connect..ctor() in C:\Users\dballantyne\Documents\Sage\Sage 50 SDK\COM Samples\2014\Sample Code\C_Sharp .Net Code\CSSDK\Connect.cs:line 26
at CSSDK.frmMain..ctor() in C:\Users\dballantyne\Documents\Sage\Sage 50 SDK\COM Samples\2014\Sample Code\C_Sharp .Net Code\CSSDK\frmMain.cs:line 23
at CSSDK.frmMain.Main() in C:\Users\dballantyne\Documents\Sage\Sage 50 SDK\COM Samples\2014\Sample Code\C_Sharp .Net Code\CSSDK\frmMain.cs:line 458
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
Some additional bits of information:
- In either scenario, It never prompts me to "authorize" the 3rd party app's request to access. Does it only do this for the .NET api?
- I have not set up user/password security option in my Sage-50 App. The CSSDK sample app provides some userID and Password I know nothing about, however it seems to work when I have Sage-50 up and running.
Does anyone have some ideas I can try to resolve this?
Thanks!