I am receiving the following error when attempting to compile an ASP.NET application:
'MyClassLib.CachedMyReportDoc' does not contain a definition for 'Site' and no extension method 'Site' accepting a first argument of type 'MyClassLib.CachedMyReportDoc' could be found (are you missing a using directive or an assembly reference?)
This error occurs in the report doc code-behind, specifically on the this.Site property in the following method:
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
MaterialReportDoc rpt = new MaterialReportDoc();
rpt.Site = this.Site;
return rpt;
}
I have no idea how to fix this properly.
Any help will be appreciated.