I have a Quickbooks "Integrated Application" written in C# using QBFC 12.0. It is installed and working correctly at a number of sites with several versions of Quickbooks. Today I tried to install it at a new site with Quickbooks 2012 Premiere. To authorize the application to connect it is necessary to open QB, logging in as the QB administrator, then initiate a connection from the integrated application. This has to be done each time I install the application at a new site. In this case, when I attempt to initiate the connection, I get the following error message:
Can't Open Quickbooks. Quickbooks can't start because it is already running. Only Quickbooks Accountant and Quickbooks Enterprise can open more than one company file.
Since my application is trying to access the same company file that is already open, this message is misleading. Looking into the QBSDKLog.txt, I find the following:
20131010.152314 I 5324 RequestProcessor ========= Started Connection =========
20131010.152314 I 5324 RequestProcessor Request Processor, QBXMLRP2 v11.0
20131010.152314 I 5324 RequestProcessor Connection opened by app named 'IOS Briefcase Sync'
20131010.152314 I 5324 RequestProcessor OS: Microsoft Windows 7 Professional Service Pack 1 (build 7601), 32-bit
20131010.152314 I 5324 RequestProcessor Current Process is elevated
20131010.152314 I 5324 RequestProcessor Current User is in AdminGroup
20131010.152314 I 5324 RequestProcessor Current Process is ran as Admin
20131010.152314 I 5324 RequestProcessor Current Process Integrity Level : 3000
20131010.152314 I 5324 RequestProcessor Getting the IUnknown COM instance of QB
20131010.152514 E 5324 RequestProcessor An internal error occured while looking for a running instance of QuickBooks and getting its COM reference. Cannot continue. hr = 80080005
20131010.152514 E 5324 RequestProcessor Could not find or create an instance of QuickBooks using InstanceFinder hr = 8004041c
20131010.152514 I 5324 RequestProcessor Connection closed by app named 'IOS Briefcase Sync'
20131010.152514 I 5324 RequestProcessor ========== Ended Connection ==========
Any idea what might be causing the COM errors?