We have a custom .NET application that connects to QuickBooks Desktop to sync payment data with a third-party database. We’re using the QBFC library for this connection. Our goal is to connect to QuickBooks without having to run the QuickBooks application directly. We’ve already granted the necessary permissions to the custom application in QuickBooks preferences.
However, when attempting to connect using the code snippet below, we encounter the following error:
"This application is unable to log into this QuickBooks company data file automatically. The QuickBooks administrator must grant permission for an automatic login through the Integrated Application preferences. If such permission was already granted, the administrator must revoke permission, save preferences, then grant the permission again."
this.SessionManager.EndSession(); this.SessionManager.CloseConnection(); SessionManager.OpenConnection("App", AppConstants.QBAppName); //SessionManager.BeginSession("", ENOpenMode.omDontCare); SessionManager.BeginSession(@"C:\\\Test.QBW", ENOpenMode.omDontCare);
Any insights on how to resolve this issue would be greatly appreciated. Thanks in advance!