Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Remote Connection authenticationSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v7 Forum

 New Topic 
 
 Post Reply 
[1]  
 Remote Connection authentication 
 Author   Message 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-09-29 01:18:00

I have been using QODBC Remote Connector with Server Edition 2007, version 7.00.00.214 successfully for a couple of months now. However, lately when I start the remote connector, several times, it prompts for username and password despite the fact that "Require Authentication" has always been unchecked.

Secondly, and this has always been a problem, whenever I run Timed Outa query for the first time, it produces a "Timed Out" error. The second time around, which is usually within a couple of minutes, it runs just fine. Please help. Thank you.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-09-30 09:53:10
ColdFusion isn't one to the best platforms for QODBC. Basically if the connection fails because to a lack of memory resources, then the password prompt appears. Most Coldfusion sites need to be rebooted every three to five days. Because the QODBC Remote Connector is only intended for DeskTop applications, we don't "officially" support the use of Windows Services and the QODBC Remote Connector. If it works, great, if it doesn't, sorry, you should be using the QODBC Server Edition and the QODBC DCOMs. 

  Top 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-10-04 05:17:38
I switched over to the Server Edition  using DCOMs. testDCOM.cfm shows all tests successful. VBDemo connects fine, but displaySQL.cfm brings up no results, although the same query in VBDemo displays correct results.  

  Top 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-10-04 07:20:54

That was earlier today; Now, displaySQL.cfm only produces this error:

[Macromedia][SequeLink JDBC Driver][ODBC Socket][QODBC] QB Begin Session Failed. Error = 80040408, Could not start QuickBooks.

VB Demo still connects.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-04 07:23:03

ColdFusion runs queries as multiple treads, and the QODBC optimizer is single user only. So you need to setup a different optimizer file for ColdFusion to use than the other disktops applications. To do this step up a seperate System DSN (see: How do I create or configure a QODBC DSN? ) and specify a fixed location of the optimizer database folder for ColdFusion to use, like C:\Program Files\QODBC Driver for QuickBooks, instead of the default %UserProfile% method.

To repair the optimized customer table for ColdFusion you can run:

SELECT * FROM Customer VERIFY WHERE ListID = 'x'

Note: You may need to check the "Run 2.1 ODBC Compatibility" checkbox - Certain applications require ODBC 2.1 Compatibility to use QODBC. For example, anything that uses the Java ODBC library, like ColdFusion, requires this option turned on or recordsets will be returned with no rowsets or only 1 rowset.

See: Does QODBC work with Coldfusion? for more. DisplaySQL.cfm uses dataSource="QBs" which is the QuickBooks Data DSN. In order for this to work you must also configure the "QuickBooks Data" data source to auto-login to your company file as shown in: How do I setup QODBC to auto-login into QuickBooks and start it if it's not running? 

 

  Top 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-10-05 01:44:08

Did everything; Now, althougth QODBC has been set up to autologin as an integrated application in Quick Books, displaySQL.cfm only produces this error:

[Macromedia][SequeLink JDBC Driver][ODBC Socket][QODBC] QB Begin Session Failed. Error = 80040408, Could not start QuickBooks.

VB Demo still connects.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-05 06:28:37
Are you running Microsoft Windows Vista? Both QuickBooks and the QODBC application accessing the SDK must be run with standard user permissions (NOT elevated to run as administrator). If you are still using the Remote Connector, when QODBC is reinstalled the "Use Remote connector" check box will get unchecked and produce the error. You may need to look at your connection settings. 

  Top 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-10-05 06:34:03
I am running Windows 2003 Server and using DCOM Servers. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-05 07:09:51
Check that auto-login really works for the DSN you are using. By this I mean close QuickBooks and then connect to the DSN using VB Demo. VB Demo should start QuickBooks and open the company file in background mode. 

  Top 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-10-05 07:19:19
Did like you suggested: VB Demo connects just fine - no problems! 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-05 07:32:53
Then it sounds like a permission issue. Have you given IUSR_machinename all rights to the C:\Program Files\QODBC Driver for QuickBooks\ using the Security tab? Have you allowed Anonymous access in IIS? 

  Top 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-10-05 07:41:21
Yes, to both: IUSR_machinename has all rights to C:\Program Files\QODBC Driver for QuickBooks\ and anonymous access is allowed in IIS. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-05 07:44:35
Try going back and check that qbcust.asp works as shown in: How can I see QuickBooks data in a Internet Explorer Browser using Windows XP?  

  Top 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-10-09 05:33:44
Tried the qbcust.asp. The browser sits at "ADO Recordset Created - Opening QuickBooks Sample Company File"  for about an hour and then produces: "Internet Explorer cannot display the webpage" 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-09 07:47:58

When using Windows 2003 Server you also need to check your "Enhanced Security Configuration for Internet Explorer" settings.

The Enhanced Security Configuration for Internet Explorer typically sets the IE security settings to "high", so QuickBooks throws a warning every time it starts, even for the SYSTEM service, which hangs QODBC while waiting for input.

 

  Top 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-10-09 07:57:58

I am not using the local browser (IE) on the server to browse to the pages. The browser is on a Windows XP machine. Here is the URL for you to check out: http://64.128.27.201/cva/qbcust.asp

Also the testDCOM is at: http://64.128.27.201/cva/testdcom.cfm

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-09 08:23:04

Ok, the connection is not happening:

oConnection.Open "QuickBooks Data"
response.write "QODBC DSN QuickBooks Data Open<BR>" & vbCrLf

So I'm guessing there's a error on the server that we're not seeing. Try running this on the server as localhost and look at the system logs.

 

  Top 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-10-10 00:50:03
Running it on localhost does not register any errors in the EventViewer. 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-10 08:27:43
Sounds like it's still a security issue on your server, try looking at: Permissions Issue with IIS using AUTHENTICATED USERS  

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to