I'm upgrading a VB.net Windows Forms application from 1.1 to 4.0. In the reporting form, the list of reports you can choose are pulled from a folder where the .rpt files reside. Once the user chooses a report and executes it, vb code populates the current database connection information and displays the report in the report viewer control.
The following things are true:
- Version 1.1 works on my systems and my customers systems
- The code has not been changed, except that it now targets .Net 4.0 instead of 1.1
- The exact same .rpt files are being used
- Version 4.0 connects to the same database my customer is using, and I can run the reports just fine from here.
- Version 4.0 is able to connect to the database just fine from my customers systems (using the same connection information provided to the report)
- My customer installed this: http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_redist_install_32bit_13_0_2.zip
The only problem is that my customer encounters this error when trying to run any report from his systems:
Failed to open the connection.
Details: Database Vendor Code: 17
Failed to open the connection.
Orders.BOL.TaskDetail {393C9017-0ED1-4E1E-8824-E222F4B9D14C}.rpt
Details: Database Vendor Code: 17
I read all of the articles I could find, and they either don't describe this exact situation, or there is insufficient information for troubleshooting this issue. Are there steps that I've missed to make Crystal Reports for VS2010 work on my customer's systems?
Your help is appreciated,
Mark
Request clarification before answering.
Hi Mark,
More information required -
- Does this happen with all reports or few?
- What is the connection type used for the report to connect to the database (OLEDB,ODBC etc)
- Are you changing the database at runtime?
few things you could check
- Check if the database is accaessible from the client machine with proper permissions / rights.
- If its an ODBC connection check if the DSN with same name is created on the client machine.
- Check the driver / provided used by the report to connect to the DB, verify that the same is installed on the client machine. (SQL NAtive client, SQL Server etc)
Also take a look at below articles discussing the simillar issue.
[1474461 - Unknown Database Connector Error when connecting to a Dataset in a VS .NET application |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433373334333433363331%7D.do]
Hope this helps,
- Bhushan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your response, here is more information:
- Does this happen with all reports or few?
it happens when my customer opens any report.
- What is the connection type used for the report to connect to the database (OLEDB,ODBC etc)
OLEDB
- Are you changing the database at runtime?
the database connection information is set at run-time, the same way it does in the old version, which is still working
- Check if the database is accaessible from the client machine with proper permissions / rights.
my application is able to connect to the database with the same connection information that my code provides to the report
- Check the driver / provided used by the report to connect to the DB, verify that the same is installed on the client machine. (SQL NAtive client, SQL Server etc)
The old version of the application uses the same driver, and it is still working fine
I will take a look at the links you provided...
Thanks again,
Mark
Also take a look at below articles discussing the simillar issue.
1474461 - Unknown Database Connector Error when connecting to a Dataset in a VS .NET application
I checked those two articles and neither are relevant to my situation, however it was helpful that one pointed out that error code 17 is "SQL Server does not exist or access denied".
Any ideas why CR would not be able to access a server that my application can access just fine? Furthermore, CR can access this server from both a 32 and 64 bit system here using the same connection information, it is only not working on my customer's computer.
All of these facts make me think my customer's computer needs something more that I didn't need on my systems to get it working.
Thank you,
Mark
few things to try
- Compile the application targetting X64 bit mode and then deploy on the client machine using 64 bit runtimes.
- Run 'Process Monitor", 'fiddler' on the client machine and look for any access denied errors.
Also, does this happen only on one client environment? this could be an environment specific issue.
You can give it a try o sopme other client machine.
- Bhushan
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.