Error = 80040408 using Visual Studio 2005 SP1 on Vista |
Author |
Message |
|
Posted : 2007-04-14 02:22:43 |
I had a Visual Basic project working okay in XP and Visual Studio 2005. I moved my development to Vista Ultimate, using QB Pro 2007 R6P, QODBC v7.00.00.214 and Visual Studio 2005 SP1, updated for Vista.
I followed the QODBC Vista alert instructions to set up QODBC. QB Pro 2007 is opened, but when I try to add a new data source to my VB project by selecting
- Data - Add New Data Source
- Selecting Database and Next
- Clicking on the New Connection... button
- Selecting Data Source: Microsoft ODBC Data Source and clicking Continue
- Then selecting Use user or system data source name: QuickBooks Data
- Then when I press Test Connection I get an error message from Microsoft Visual Studio that reads
ERROR [00000] [QODBC] QB Begin Session Failed. Error = 80040408, Could not start QuickBooks.
I've searched the internet for solutions without success. Anyone know what I am doing wrong? |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-04-14 20:17:06 |
Are you running Visual Studio 2005 using a standard user account? Both QuickBooks and the QODBC application accessing the SDK must be run with standard user permissions (NOT elevated to run as administrator). |
|
|
|
|
Posted : 2007-04-14 22:09:14 |
Tom: You nailed it!
What is fascinating about this is that when you start VS in standard mode a dialog box pops open advising you to run the VS in administrator mode or else!
Of course now my queries are all broken.
Vista - backwards, sideways, backwards again - any direction except forward. It makes me think about switching to OS X.
Thank you. Richard |
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-04-14 22:45:22 |
|
|
|
|
Posted : 2007-08-30 08:48:14 |
I had the same problem...
The "Test Connection" button was "greyed out" also.
WHO EVER HEARD OF A "STANDARD USER" BEING ABLE TO DO SOMETHING AN "ADMINISTRATOR" CAN'T??????
Is this a problem with Vista? I usually stay logged in with my Administrator account. I'm a Domain Admin.
Forgive me...
|
|
|
|
Tom |
|
Group | : Administrator |
Posts | : 5510 |
Joined | : 2006-02-17 |
|
Profile |
|
Posted : 2007-08-30 09:06:56 |
No, this is how Microsoft intend you to use Microsoft Windows Vista. You are mean't to use Vista with standard user permissions (NOT elevated to run as administrator). Vista will prompt you for the administrator password for all administration operations instead. |
|
|
|
|
Posted : 2008-11-02 04:38:57 |
I had the same problem, and switching my account from ADMINISTRATOR to STANDARD USER did the trick. It took several hours of screwing around before (with the help of Tom and this forum) I figured out the problem. I suspect we are not along. UAC must be on as well. These setting are a little counter intuitive to me. I would have thought that higher administrative privileges would cause less problems. Computer users advanced enough to be using products like QODBC probably give themselves administrative privileges and turn off UAC shortly after their VISTA installation is complete.
Tom, maybe you could help make these requirements clear in your VISTA installation procedures document. Might save you from answering more 80040408 questions down the road.
Thanks again,
Rich |
|
|
|