cancel
Showing results for 
Search instead for 
Did you mean: 

How to resolve Crystal Report Viewer exceptions?

Former Member
0 Kudos

I upgraded my code from VS2008 to VS2010 but now some of my Crystal Reports are not working properly. My report throws a system.invalidprogramexception and sometimes an Invalid Argument exception (Invalid Argument provided: Failed to retrieve data from the database...).

I am not sure what the root cause of the issue is. I have commented out most of the code to narrow the problem area but i still get the exception at this line of code: CrystalReportViewer1.RefreshReport().

Any help will be appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Let's start with SP 1:

http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet

1) What's the database?

2) What's the db connection method?

3) Web Win app?

4) Try a simple new app, one line;

CrystalReportViewer1.ReportSource = <path to report>

The report should prompt for the datasource. Does that work?

- Ludek

Answers (0)