up...没用过reporting service2005

解决方案 »

  1.   

    现在webservice引用已经成功,左边的tree可以显现出reportingservice的目录结构,但reportview不能正常显示..这个没通过认证似的.
    this.rvReport.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
                      this.rvReport.ServerReport.ReportServerUrl =  new Uri("http://localhost/ReportServer$Victor2005");
                       this.rvReport.ServerReport.ReportPath = this.trvReport.SelectedNode.Value.Substring(6);
    怎么能让reportview可以连接一个有form认证的reporting service呢?
      

  2.   

    参照Reporting Service Forms Sample实现ReportServerCredentials。然后用以下方式加验证就OK了。Cookie authCookie = new Cookie(cookie.Name, cookie.Value);
    authCookie.Domain = ConfigurationManager.AppSettings["ReportDomain"].ToString();
    cReportViewer.ServerReport.ReportServerCredentials = new ReportServerCredentials(authCookie);
      

  3.   

    楼主web service已经引用成功,可否指点一二。我用如下方法,但是还是验证不成功,没办法通过web service api去获取reporting service的目录结构
    System.Net.NetworkCredential creds = new System.Net.NetworkCredential(cookie.Name, cookie.Value,"DomainName");
    rs.Credentials = creds;
    通过Debug跟踪,发现creds已经有数据了,但是还是验证不了,晕晕的,楼主帮帮忙。。