它说错在行17 ,也就是:
<cr:crystalreportviewer id=CrystalReportViewer1 runat="server" Width="1040" Height="1108" ReportSource="<%# C://Inetpub//wwwroot//report//report//viewcc002.rpt %>">

解决方案 »

  1.   

    晕,这么快就沉了,看来.net人气真的很旺啊
      

  2.   

    你可以在.aspx.cs中设置ReportSource试试
      

  3.   

    我在.aspx.cs中设了ReportSource也不行,还会出现另外的错误,这到底是什么原因呀
      

  4.   

    ReportSource='<%# "C://Inetpub//wwwroot//report//report//viewcc002.rpt" %>'>
      

  5.   

    把这段crystalreportviewer删掉,重新拖一个进去,在Page_Load里面DataBind(),
    还要报错就绑定一个空白的.rpt,看看是不是你的报表有问题。
      

  6.   

    osborne(osborne):你这种用单引号加双引号我也试过,同样的错误其实我怀疑是语法错误,它的错误描述是:编译器错误信息: CS1026: 应输入 )
      

  7.   

    我又试了一次,行了
    ReportSource='<%# "C://Inetpub//wwwroot//report//report//viewcc002.rpt" %>'>
    还要在 Page_Load 中加一行 CrystalReportView1.DataBind();
    谢谢各位了