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 : iis 5.0 asp.net open connection failingSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 iis 5.0 asp.net open connection failing 
 Author   Message 
  jeff 
  
 Group: Members 
 Posts: 76 
 Joined: 2006-06-03 
 Profile
 Posted : 2006-06-07 11:12:50

I am having the same problem

Windows Xp pro, iis 5.0, QODBC free edition but using the sample company for eval purposes.

I have successfully configured a classic asp page to connect to QODBC and return the Customer table. I would like to do the same thing using asp.net.

Here is the code.

Me.conn = New OdbcConnection("DSN=QuickBooks Data")

Me.conn.Open() 'error occurs here

Here is the error:

System.Data.Odbc.OdbcException: ERROR [00000] [QODBC] QB Open Connection Failed. Create DCOM Instance Error = 80070005, Unknown error.. Created qbXMLRP2 OK. ERROR [00000] [QODBC] QB Open Connection Failed. Create DCOM Instance Error = 80070005, Unknown error.. Created qbXMLRP2 OK. at System.Data.Odbc.OdbcConnection.Open() at JavaScriptTest.WebForm1.GetQBCustomerList() in c:\inetpub\wwwroot\JavaScriptTest\WebForm1.aspx.vb:line 50

I also receive the following system event log warnings and errors:

The server was unable to logon the Windows NT account 'IUSR_INTTECH-1' due to the following error: Logon failure: unknown user name or bad password. The data is the error code.

The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID

{0C0A3666-30C9-11D0-8F20-00805F2CD064}

to the user INTTECH-1\IWAM_INTTECH-1 SID (S-1-5-21-1004336348-2139871995-839522115-1007). This security permission can be modified using the Component Services administrative tool.

When I run the classic asp page I only receive the first warning about the iusr_inttech-1 account but the qodbc still works anyway. When I run the asp.net page I get like 3 or 4 waringins and one error about the Iwam user not being able to access {0C0A3666-30C9-11D0-8F20-00805F2CD064}. What is this appID? What is the app Name so that I can give it the proper permissions needed.

I have already ran the dcpinst.exe and tried manually verfiying the dcom access permissions. i have also added the IWAM user to the dcom access and launch permissions. I dont know what else to try.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-06-07 13:14:20
Thank you for listing the actual Windows errors. Using the Security tab in Windows Explorer you need to give the IUSR_INTTECH-1 and IWAM_INTTECH-1 user all rights to the C:\Program Files\QODBC Driver for QuickBooks\ folder. Try looking at: How can I see QuickBooks data in a Internet Explorer Browser using Windows XP?  for more information. 

  Top 
  jeff 
  
 Group: Members 
 Posts: 76 
 Joined: 2006-06-03 
 Profile
 Posted : 2006-06-08 03:57:51

I have .net 1.1 with sp1 and mdac 2.8. I have made sure that the iusr and iwam user have full permissions on the quick books qodbc folder. I still recieve the same error from code.

System.Data.Odbc.OdbcException: ERROR [00000] [QODBC] QB Open Connection Failed. Create DCOM Instance Error = 80070005, Unknown error.. Created qbXMLRP2 OK. ERROR [00000] [QODBC] QB Open Connection Failed. Create DCOM Instance Error = 80070005, Unknown error.. Created qbXMLRP2 OK. at System.Data.Odbc.OdbcConnection.Open() at JavaScriptTest.WebForm1.GetQBCustomerList() in c:\inetpub\wwwroot\JavaScriptTest\WebForm1.aspx.vb:line 50

How ever the system event log no longer throws the dcom error, but I am still receiving the warning about the iusr and password not begin found. Is this related to the setting in iis virtual directory that allows iis to control the password.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-06-08 12:43:54

Please get qbcust.asp working before trying your .NET app. Uncheck the "Allow IIS to control password" setting for Anonymous access in IIS as shown here and set your own password.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to