I'm seeing the following error when testing a report after converting to CR for VS2010. I've traced this down to a reproducable case where one extends the existing CrystalReportViewer class and then tries to instantiate an instance of that subclass as shown below.
public class MyWinFormsCRViewer : CrystalDecisions.Windows.Forms.CrystalReportViewer
{
}
When instantiating the above viewer you will see the following exception.
System.ArgumentException was unhandled
Message=Resource 'DefaultAnimation.gif' cannot be found in class 'CrystalReportsViewer.MyWinFormsCRViewer'.
Source=System.Drawing
StackTrace:
at System.Drawing.Bitmap..ctor(Type type, String resource)
at CrystalDecisions.Windows.Forms.CrystalReportViewer.InitReportViewer()
at CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()
at CrystalReportsViewer.MyWinFormsCRViewer..ctor() ...
This issue is my last roadblock in all of the possible ways I've tried to work around using the new CR for VS 2010 release. Unfortunately at every turn there is an issue preventing us from using this release.
Other blocking issues:
[WPF Viewer doesn't work within a WinForms application|The WPF CrystalReportsViewer fails with NullReferenceException in WinForms;
[Cannot build projects that target CR for VS2008 from within VS2010 after CR for VS2010 is installed|Another Crystal Reports for VS2008 and VS2010 side-by-side issue;
HitPath under crystal reports assembly references are being removed each time the project is opened