ReportDocument rpdoc = new ReportDocument();//出错行
rpdoc.Load(Server.MapPath("CrystalReport.rpt"), CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy);
rpdoc.SetDataSource(ds.Tables[0]);
CrystalReportViewer1.ReportSource = rpdoc;以上代码在我的机器上(装了vs2005)没有问题,而在我们的内网服务器(只装了FrameWork2.0)上运行出现如下错误:
An error has occurred while attempting to load the Crystal Reports runtime.Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information.