使用.net访问Sql Server Report Service 2008 出现的权限问题

xeon_pan 2011-03-02 04:22:48
SSRS2008中使用了Form验证的方式。

在.net程序中调用SSRS的Webservice。

但是运行下列代码时
rs = new sohemacnwebReportService.ReportingService2005();
rsExec = new sohemacnwebReportExecution.ReportExecutionService();
rs.Credentials = new System.Net.NetworkCredential("UserName", "Password");
rsExec.Credentials = new System.Net.NetworkCredential("UserName", "Password");
rs.ListChildren(@"/", true);
rs.LogonUser("UserName", "Password",null);



rs.ListChildren(@"/", true);

会抛出 一个
The Authentication Extension threw an unexpected exception or returned a value that is not valid: identity==null. (rsAuthenticationExtensionError) 
异常。

在执行
rs.LogonUser("UserName", "Password",null);

的时候会抛出一个
Log on failed. ---> Microsoft.ReportingServices.Diagnostics.Utilities.LogonFailedException: Log on failed.


已知用户名密码是对的,直接web方式访问SSRS是能看到报表的。 但是用.net访问就是卡在这里,毫无头绪。

请高人指教指教 谢谢
...全文
147 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
永生天地 2011-03-02
  • 打赏
  • 举报
回复
看了比较晕,同意楼上,
人工置顶
快溜 2011-03-02
  • 打赏
  • 举报
回复
是不是登录失败的意思,去.net版问问。
xeon_pan 2011-03-02
  • 打赏
  • 举报
回复
补充,rs和rsExec是 SSRS那两个Web Service的引用的对象

22,209

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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