1

当我调用 LoadReport 方法时,我收到 SSRS 报告服务错误“对象已移动”。我正在使用自定义安全性。

<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/Reports/Pages/Auth.aspx? returnUrl=http://localhost//ReportServer/ReportExecution2005.asmx" mce_href="/Reports/Pages/Auth.aspx? returnUrl=http://localhost//ReportServer/ReportExecution2005.asmx">here</a>.</h2>

4

2 回答 2

1

经过大量挖掘和解决方法后,我终于使用报告服务 SOAP API 实现了自定义身份验证。诀窍是在每个请求中传递身份验证 cookie。以下文章(虽然对于报告查看器,但我采用 cookie 管理部分)非常有帮助;

http://praveenbattula.blogspot.com/2010/01/report-viewer-control-authentication_16.html

LogonUser 之后的这些行执行 cookie 管理部分;

hcookie = new HttpCookie(myAuthCookie.Name, myAuthCookie.Value);  
HttpContext.Current.Response.Cookies.Add(hcookie);  
于 2015-01-07T14:08:43.643 回答
0

这可能对其他人没有帮助,但我可以通过简单地清除我的站点数据来解决 Chrome 中的这个问题。

在此处输入图像描述

于 2020-02-13T17:37:10.717 回答