Skip to Content
Former Member
Apr 06, 2011 at 01:58 AM

How to resolve Crystal Report Viewer exceptions?


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.