2015-04-07 56 views
0

我们在SharePoint(2013)集成模式下使用SSRS(SQL Server 2012)。该报告使用3个参数,全部使用共享数据集。看起来,如果选择一个参数的时间超过30秒,选择第一个参数后,即使看到所选的所有3个参数值,当您点击“应用”时,报告也不会运行,并且所有参数值都会再次返回。 一些研究让我看到这个链接Time-out values for shared datasets 但我无法更改属性“编辑查询执行超时”,因为我找不到任何地方,我知道它根本没有设置。单击应用时SSRS参数消失

回答

0

我已经偶然发现了上述问题的答案,让用户烦了太久。我们必须在我们的报告Web服务器上向文件global.asax添加几行代码,并为我们解决了这个问题。

<script runat="server"> 

protected void Application_BeginRequest() 
{ 
    if( FormsAuthentication.IsEnabled 
    && Context.Request.RequestType == "POST" 
    && Context.Request.Headers["x-requested-with"] == "XMLHttpRequest" 
    ) 
    Context.Response.SuppressFormsAuthenticationRedirect = true; 
} 

</script> 

在这里找到整篇文章:SharePoint Authentication Redirect