Skip to main content

Get 50% OFF QuickBooks for 3 months*

Buy now
Switch to QuickBooks and 70% off for 3 Months
June 11, 2025
Question

Unable to connect Quickbook desktop app to third party app

  • June 11, 2025
  • 1 reply
  • 7 views

I have built a desktop application using C# that fetches data from QuickBooks Desktop. However, whenever I try to establish a connection between my app and QuickBooks Desktop using IQBSessionManager, I encounter an bellow error

(Not_Detected): System.Runtime.InteropServices.COMException (0x80040430): 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. at QBFC13Lib.IQBSessionManager.BeginSession(String qbFile, ENOpenMode openMode)



Bellow C# code try make connection to Quickbook desktop app. but it throwing error.

static IQBSessionManager sessionManager = null;
sessionManager = new QBSessionManager();
string qbFile ="C:\CompanyFile.qbw";

sessionManager.OpenConnection2(" ", "Upload Client", ENConnectionType.ctLocalQBD);
sessionManager.QBAuthPreferences.PutIsReadOnly(true);
sessionManager.BeginSession(qbFile, ENOpenMode.omDontCare);



My Setting

  • QBD opened as Signle user mode
  • Company file placed in directly C:/ not inside company file folder
  • Edit->Preferences-> Integrated Applications
  • Deselect check box "Dont allow any application to access this company file"
  • Select checkbox "Allow this application to read this company file"

 

Note This error does not occur for every user. The code works fine on one computer, but on another computer, it throws the error mentioned above. I have checked the settings on both machines, and they are the same




please help me to resolve this issue

1 reply

QuickBooks Team
June 11, 2025

I appreciate you clearly expressing your concerns, LaxmanKalai. I'll ensure you get the best support available to address your concerns.

 

To start, could you let me know if you are using QuickBooks Desktop? If so, it's possible that you need permission from the administrator when trying to integrate that app. However, if you are the administrator and still facing the error, I recommend posting your issue on QuickBooks' official platform. Their experts are best equipped to help you with integrations, APIs, developments, and other related concerns.

 

Here's how:

 

  1. Go to this link: Intuit Developer Support.
  2. Log in to your Intuit Developer Account or create a new one.
  3. Select QuickBooks Desktop under What you need help with.


     
  4. Click Ask a question, then click Ask to post your query.

 

Feel free to visit our Help articles page to seek sources that will guide you in performing any QuickBooks tasks. Just choose a topic or type a keyword of your concern on the search bar. The system will show related articles to help you. 

 

You can always get back to us whenever you have additional questions about managing integrations or any QuickBooks-related questions. The Community team will gladly help you.