SDKInstanceManager OpenDatabase always returns false and has no error messages


I'm trying to work through the C# sample project in the Sage 50 Accounting SDK (Simply) but for some reason I can't get the opendatabase connection to let me access the database. I have set up my user in the Sage app and I know my username and password is correct because the VB,Net sample works. But for some reason the C# opendatabase function always returns false and I can't figure out why. Theres no error message either to help figure out my issue.

Any help would be greatly appreciated!

  • Does it work from a command prompt, using the original compiled sdkexample.exe that came with the SDK?
    If not, the problem is in the environment (password, connection manager, database already open, etc, etc, etc.

    Does it work with an EXE compiled from the original c# code as supplied with the SDK?
    If not, the problem is in the compiler / IDE.

    If it worked until the code was changed, then the problem is in your code. I can't see it from here, so I can't figure it out either.  If you run the SDK from a command prompt, in the bin folder, you may see an error message to stdout.

  • I finally figured it out, I ran the SDK from the command prompt and got the error saying my application version and database version werent compatible. I got the updated SDK and it worked fine. Thanks!