try to run a crystal report first to make sure it is properly installed, also make sure to give ASPNET account read permissions on the report file, also seehttp://support.crystaldecisions.com/communityCS/TechnicalPapers/crnet_deployment.pdf
调试欢乐多
string path1,path2;
path1=Server.MapPath ("\\Report1");
path2=path1+"\\111.rpt";
oRpt.Load (path2);
CrystalReportViewer1.ReportSource = oRpt;
就出现我说的那种问题,真奇怪,大家帮忙分析一下,会是什么原因呢?
如果这些你都作过了,只是因为加载报表文件出错的话,就要看看报表文件是否可以访问,也就是直接在地址栏中试试,如果可以,如果也可以,那就不用map,直接用url.
看看有没有虚拟目录——CrystalReportWebFormViewer?
Crystal Reports\Viewers文件夹,点右键--》属性--》安全--》加入权限。就ok了!