无法解决这个问题了...如何在asp.net里用web service方式引用带有form验证模式的reporting service2005

gabriel1 2007-01-24 05:22:33
如题..
现有webservice带有form身份验证,为了不让未授权用户通过url方式访问报表,如何才能引用此reporting service呢?

相关未解决问题:http://community.csdn.net/Expert/TopicView.asp?id=5306558
...全文
271 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
whishtking 2011-09-01
  • 打赏
  • 举报
回复
怎么就没有解决方法????
inrie 2007-04-10
  • 打赏
  • 举报
回复
楼主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已经有数据了,但是还是验证不了,晕晕的,楼主帮帮忙。。
inrie 2007-04-10
  • 打赏
  • 举报
回复
参照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);
liujia_0421 2007-01-29
  • 打赏
  • 举报
回复
帮兄弟顶一把...
gabriel1 2007-01-29
  • 打赏
  • 举报
回复
up
gabriel1 2007-01-26
  • 打赏
  • 举报
回复
.....
gabriel1 2007-01-26
  • 打赏
  • 举报
回复
现在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呢?
gabriel1 2007-01-25
  • 打赏
  • 举报
回复
分是少了点,但也不能连顶的都没有了啊,

会另开贴给分的啊..

怎么回事
gabriel1 2007-01-25
  • 打赏
  • 举报
回复
虽然希望渺茫,再顶一下吧.
gabriel1 2007-01-25
  • 打赏
  • 举报
回复
我靠,再up.
gabriel1 2007-01-25
  • 打赏
  • 举报
回复
up
csShooter 2007-01-24
  • 打赏
  • 举报
回复
up...没用过reporting service2005
gabriel1 2007-01-24
  • 打赏
  • 举报
回复
~~顶

110,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧