Qodbc Version 8.0.0.234 does not work with php on window server 2003 Enterprise edition |
Author |
Message |
|
Posted : 2007-10-11 23:57:41 |
What i m using?
- Windows server 2003 Eenterprise Edition
- Quick Books:simple start free Starter Edition 2007
- Qodbc Version 8.0.0.234 30 day free trial version
- Apache 2.2 and php 5
- And RDC(Remote desktop Connection application) from window2000/xp to setup all the things on this window2003 server
What the problem
when i use the vb demo with my self made DSN it works fine but when i use this DSN with your php sample file or as well in my file it give me following error .
On the Browser it says ---------------------------------------------------------- Warning: odbc_connect() [function.odbc-connect]: SQL error: [QODBC] QB Begin Session Failed. Error = 80040408, Could not start QuickBooks. , SQL state S0000 in SQLConnect in C:\xampp\htdocs\qbook\conn.php on line 4
Error >> [QODBC] QB Begin Session Failed. Error = 80040408, Could not start QuickBooks.
---------------------------------------------------------------
AND in the qbsdklog.txt =-----------------------------------------------------------------------------= 20071011.082832 I 113120 RequestProcessor ========= Started Connection ========= 20071011.082832 I 113120 RequestProcessor Request Processor, QBXMLRP2 v6.0 20071011.082832 I 113120 RequestProcessor Connection opened by app named 'FLEXquarters QODBC' 20071011.082832 E 113120 RequestProcessor An internal error occured while looking for a running instance of QuickBooks. Cannot continue. hr = 800401f3 20071011.082832 E 113120 RequestProcessor Could not create instance of QuickBooks. hr = 8004041c 20071011.082832 I 113120 RequestProcessor Connection closed by app named 'FLEXquarters QODBC' 20071011.082832 I 113120 RequestProcessor ========== Ended Connection ==========
=--------------------------------------------------------------------=
but when i use vb demo then in the qbsdklog.txt it says =======---------------------------------------------====================== 20071011.082728 I 120484 RequestProcessor ========= Started Connection ========= 20071011.082728 I 120484 RequestProcessor Request Processor, QBXMLRP2 v6.0 20071011.082728 I 120484 RequestProcessor Connection opened by app named 'FLEXquarters QODBC' 20071011.082754 I 120484 RequestProcessor Opening the file in the DoNotCare mode. 20071011.082820 I 108396 QBSDKProcessRequest Application named 'FLEXquarters QODBC' starting requests (process 120484). 20071011.082821 I 108396 SpecVersion Current version of qbXML in use: 4.0 20071011.082821 I 108396 QBSDKMsgSetHandler QUERY: Host 20071011.082821 I 108396 QBSDKMsgSetHandler Request 1 completed successfully. 20071011.082821 I 108396 QBSDKMsgSetHandler QUERY: Company 20071011.082821 I 108396 QBSDKMsgSetHandler Request 2 completed successfully. 20071011.082821 I 108396 QBSDKMsgSetHandler QUERY: DataExtension Definition 20071011.082821 I 108396 QBSDKMsgSetHandler Request 3 completed successfully. 20071011.082821 I 108396 MsgSetHandler Finished. 20071011.082821 I 108396 QBSDKProcessRequest Application named 'FLEXquarters QODBC' finishing requests (process 120484), ret = 0. 20071011.082832 I 113120 CertVerifier The file does not contain an Authenticode signature. ================-------------------------------------=======================
it give the permision on all the folder specified in this forum even on the program file/\Intuit i gave the permission to every one .( administrator , iUSER_TEMPLATE ,everyone and gave full permission ) but nothing changed
My DSN settings (Summary) Note: i m not usign DCOM enable and following setting is working fine on xp on my loacl pc (even on php)
Advanced(Tab)1.
General(tab)
Detail Trace when press the test connection button ON DSN creation
-********--**********----**********---**********---**********---**********---**********---**********-------
ISAMOpen Database: C:\Documents and Settings\All Users\Documents\Intuit\QuickBooks\Company Files\Forest Diamonds Inc..QBW DSN: qbook1 UserName: Password: DeveloperCode: ApplicationCode: OpenMode: F UseDCOM: N IBizRemoteConnection: N IBizRemoteURL: http://localhost:2080 IBizRemoteUserName: admin IBizRemotePassword: IBizRemoteAskPassword: Y IBizRemoteSSLAcceptServerCert: IBizRemoteConnectionTimeOut: 120 IBizRemoteForce2002_2003: N IBizOEConnection: N IBizOETicketGUID: IBizOELoginGUID: IBizOELoginAsk: Y IBizReconnectionDelay: 0 ColumnNameLen: 50 UseCaseSensitiveRefNumber: Y OptimizerOn: Y OptimizerDBFolder: C:\Documents and Settings\Administrator\Application Data\QODBC Driver for QuickBooks\Optimizer OptimizerCurrency: C OptimizerDirtyReads: N OptimizerUpdateSync: N OptimizerEncrytionOn: Y ShortCircuitOptimizeFields: N UseIterators: Y IteratorChunkSize: 500 IAppLaunchQBUI: Y IAppAutomaticLogin: N IAppReadOnly: N IAppAllowPersonalData: Y ConvertToLongVARCHAR: FALSE MaxLONGVARCHAR: 4096 Convert To LONGVARCHAR: N Max LONGVARCHAR: 4096 OleInitialize - Returned OK Logged In User: Administrator Is a Service: No Registration Name: RegSerial: QODBC Version: 8.00.00.234 DLL: C:\WINDOWS\system32\fqqb32.dll Driver Name: FQQB32.DLL Process Count: 1 Thread Count: 0 OpenMode: Follow Company Include Raw: No Version Type: Evaluation QODBC Server Edition 2008 Access Method: QBXMLRP2.DLL (IAuth2) Thread ID: 88152 SDK Module: QBXMLRP2.DLL (IAuth2) QB Company Name: C:\Documents and Settings\All Users\Documents\Intuit\QuickBooks\Company Files\Forest Diamonds Inc..QBW QB Product Name: QuickBooks: Simple Start Free Starter Edition QB Major Version: 17 QB Minor Version: 0 QB File Mode: SingleUser QB Automatic Login:No QB Country: US QB Supported Ver: 1.0 QB Supported Ver: 1.1 QB Supported Ver: 2.0 QB Supported Ver: 2.1 QB Supported Ver: 3.0 QB Supported Ver: 4.0 QB Supported Ver: 4.1 QB Supported Ver: 5.0 QB Supported Ver: 6.0 Optimize SQLITE3 Library Version: 3003007 Optimize File Contents: C:\Documents and Settings\Administrator\Application Data\QODBC Driver for QuickBooks\Optimizer\Forest Diamonds Inc..OPT type name tbl_name rootpage sql ========================= ========================= ========================= ========================= ==================================================================================================== table FQOptimizeList FQOptimizeList 2 CREATE TABLE "FQOptimizeList"("FQOptimizeList_OptimizeName" VARCHAR(50) NOT NULL UNIQUE COLLATE NOCA index sqlite_autoindex_FQOptimi FQOptimizeList 3 table FQOptimizeVersion FQOptimizeVersion 4 CREATE TABLE "FQOptimizeVersion" ("FQOptimizeVersion_CompanyName" VARCHAR(1000), "FQOptimizeVersion_ FQOptimizeList Contents OptimizeName TableList SQL LastTimeModified LastTimeDeleted LastTransactionTimeModifi LastTransactionTimeModifi LastTransactionTimeModifi LastTransactionTimeModifi TimeOfSecu ========================= ========================= ========================= ========================= ========================= ========================= ========================= ========================= ========================= ========== FQOptimizeVersion Contents CompanyName Version ========================= ========================= Forest Diamonds Inc. 5 Optimize File: C:\Documents and Settings\Administrator\Application Data\QODBC Driver for QuickBooks\Optimizer\Forest Diamonds Inc..OPT 0x00158AB8 [ISAM] NO_ISAM_ERR 00000 00000 ISAMClose 0x00158AB8 [ISAM] Optimize SQLITE3 Library Version: 3003007 Optimize File Contents: C:\Documents and Settings\Administrator\Application Data\QODBC Driver for QuickBooks\Optimizer\Forest Diamonds Inc..OPT type name tbl_name rootpage sql ========================= ========================= ========================= ========================= ==================================================================================================== table FQOptimizeList FQOptimizeList 2 CREATE TABLE "FQOptimizeList"("FQOptimizeList_OptimizeName" VARCHAR(50) NOT NULL UNIQUE COLLATE NOCA index sqlite_autoindex_FQOptimi FQOptimizeList 3 table FQOptimizeVersion FQOptimizeVersion 4 CREATE TABLE "FQOptimizeVersion" ("FQOptimizeVersion_CompanyName" VARCHAR(1000), "FQOptimizeVersion_ FQOptimizeList Contents OptimizeName TableList SQL LastTimeModified LastTimeDeleted LastTransactionTimeModifi LastTransactionTimeModifi LastTransactionTimeModifi LastTransactionTimeModifi TimeOfSecu ========================= ========================= ========================= ========================= ========================= ========================= ========================= ========================= ========================= ========== FQOptimizeVersion Contents CompanyName Version ========================= ========================= Forest Diamonds Inc. 5 NO_ISAM_ERR 00000 00000 --------------------------------*********************________________*********************___________________******** |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-10-12 10:27:00 |
|
|
|
|
Posted : 2007-10-12 17:16:07 |
Thanks tom , i tried what u told me but it did not work as i wanted
I did the things as follow 1.setup a new System DSN name "QuickBooks Data" with the help of "QODBC Setup screen"
and
And when i tested the connection , it said connection has been setup successfully
My Integrated settings as follow (Note i m using the company sample file today )
and then i closed the Quick book and all program and launch the VB Demo and run the "QuickBook Data" DSN then it worked fine without running the quickbook and the log entry was like this
********____________________***************_________________************ 20071012.022226 I 126784 QBSDKProcessRequest Application named 'FLEXquarters QODBC' starting requests (process 144368). 20071012.022227 I 126784 SpecVersion Current version of qbXML in use: 4.0 20071012.022227 I 126784 QBSDKMsgSetHandler QUERY: Host 20071012.022227 I 126784 QBSDKMsgSetHandler Request 1 completed successfully. 20071012.022227 I 126784 QBSDKMsgSetHandler QUERY: Company 20071012.022227 I 126784 QBSDKMsgSetHandler Request 2 completed successfully. 20071012.022227 I 126784 QBSDKMsgSetHandler QUERY: DataExtension Definition 20071012.022227 I 126784 QBSDKMsgSetHandler Request 3 completed successfully. 20071012.022227 I 126784 MsgSetHandler Finished. 20071012.022227 I 126784 QBSDKProcessRequest Application named 'FLEXquarters QODBC' finishing requests (process 144368), ret = 0.
********____________________***************_________________************
and now i start my php program ( i disconneted the vb demo first)
then i got the same error Error >> [QODBC] QB Begin Session Failed. Error = 80040408, Could not start QuickBooks.
and log entry was ********____________________***************_________________************ 20071012.022427 I 113120 RequestProcessor ========= Started Connection ========= 20071012.022427 I 113120 RequestProcessor Request Processor, QBXMLRP2 v6.0 20071012.022427 I 113120 RequestProcessor Connection opened by app named 'FLEXquarters QODBC' 20071012.022427 E 113120 RequestProcessor An internal error occured while looking for a running instance of QuickBooks. Cannot continue. hr = 800401f3 20071012.022427 E 113120 RequestProcessor Could not create instance of QuickBooks. hr = 8004041c 20071012.022427 I 113120 RequestProcessor Connection closed by app named 'FLEXquarters QODBC' 20071012.022427 I 113120 RequestProcessor ========== Ended Connection ========== ********____________________***************_________________************
then i started the QuickBook software and again run the php program but same error again and now the log entry was . ********____________________***************_________________************
20071012.022719 I 113120 RequestProcessor ========= Started Connection ========= 20071012.022719 I 113120 RequestProcessor Request Processor, QBXMLRP2 v6.0 20071012.022719 I 113120 RequestProcessor Connection opened by app named 'FLEXquarters QODBC' 20071012.022720 E 113120 RequestProcessor An internal error occured while looking for a running instance of QuickBooks. Cannot continue. hr = 800401f3 20071012.022720 E 113120 RequestProcessor Could not create instance of QuickBooks. hr = 8004041c 20071012.022720 I 113120 RequestProcessor Connection closed by app named 'FLEXquarters QODBC' 20071012.022720 I 113120 RequestProcessor ========== Ended Connection ==========
********____________________***************_________________************ |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-10-12 22:13:13 |
Where are you calling your PHP program from? If it's from within the Apache web server on your Windows Server, then you are going to have to setup the QODBC DCOMs as Apache is a Windows Service. See: QODBC and Windows Service for more information. |
|
|
|
|
Posted : 2007-10-19 14:48:23 |
Hi Tom, thanks for reply . Yes my PHP program is being called from Apache web server . i would setup DCOM but thing to notice is that it is running without DCOM on my local machine (Windoe 2003 server) but the same thing is not working on window 2003 server (it is a Virtural private server) . i think that it may be the problem of permission on (VPS) , can u please suggest how to setup the permission to a Apache to run the qodbc program (php) . Note: i noticed one thing that i was using locally qodbc 7.10.00.231 but on live server it was 8.0.0.234 , so i reinstalled the 8.0.0.234 and setup the qodbc 7.10.00.231 on live server but the problem was same.
one more thing if i setup the DCOM then i how to setup the permission for Apache to use that because in the this forum i could not anything realated to apache and DOCM , all the things is related to .net or iis.
Thanks |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-10-20 09:01:19 |
|
|
|
|
Posted : 2007-10-23 18:02:05 |
hello tom, i m back with my problem. i tried to setup the DCOM. and i think i did it well , but when i open the vbdemo program to test the DSN it give me following error.
my settings are following
version is
and
and
i think qodbc server edition with DCOM settings does not work Qubick Book simple starter Edition ? so do i need to get the pro edition of Quick book ?
how can i open the Quick Book in multi user mode so the DSN set with Multi user mode can work with that?
thanks in advance. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-10-24 10:23:49 |
|
|
|
|
Posted : 2007-10-26 00:10:18 |
Hello tom , I upgrated to v8.0 but it still display the same Msg Box again, nothig changed.
any suggestion. |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-10-26 09:25:35 |
I repeat, go back to the basics and perform the: How do I connect to QuickBooks for the first time? procedure before doing anything about setting up the QODBC DCOMs.
Does the VB Demo connection work (without the DCOMs)?
Have you registered your copy of QuickBook Simple Start Edition? Your copy must be registered with Intuit before QODBC will connect.
What type of security have you setup on the server? There can be all sort of permissions issues using AUTHENTICATED USERS. Sometimes the *shotgun* approach of giving everything that has the words QODBC in it is the only way....
See the last post in: Permissions Issue with IIS using AUTHENTICATED USERS |
|
|
|