The most likely reason for that error is that you haven't assigned anything to
crystalReportViewer1
:
CrystalReportViewer crystalReportViewer1 = new CrystalReportViewer();
Or similar.
Put a breakpoint on the line:
crystalReportViewer1.ReportSource = objRpt;
And you will see that it contains
null