Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Failed to open the connection.
Details: [Database Vendor Code:17]
Failed to Open Connection.
payments11 {D29B3531-EF7D-426E-B1DB-05CD2A63FA5F}.rpt
Details : [Database Vendor Code:17]

My c# application works fine in my machine. When i am trying to run my application on users or target machine while click on report preview button it shows a report. If I refresh crystal report it show the above error. How to solve this error
Posted
Comments
ashok rathod 29-Oct-14 3:44am    
Please Check that your Previous Connection is closed Successfully, have you written any code after operation.Please check Inner Exception as well

1 solution

The chances are that the live machine can't see the database that the connection string you provided refers to: check that you changed the connection string (it should be in a config file, not hard coded) to match the local user network, and check that the authorization details it provides are correct - username, password, that kind of stuf: almost no "live" db systems use windows authentication for security and tracability reasons.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900