SQL 2008 R2 - Reporting Services,在 Internet 上使用带有 Report Builder 3 的数据模型会导致崩溃,有什么想法吗? [英] SQL 2008 R2 - Reporting Services, using Data Model with Report Builder 3 over internet causes crash, any ideas?

查看:25
本文介绍了SQL 2008 R2 - Reporting Services,在 Internet 上使用带有 Report Builder 3 的数据模型会导致崩溃,有什么想法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景:

  • 我有一个装有 SQL 2008 R2 数据引擎和报告服务的 Windows 2008 R2 机器.
  • 我已将 Reporting Services 配置为使用我编写的自定义身份验证 (FormsAuthentication).
  • 如果用户在 Reporting Services 配置文件中正确登录,则自定义身份验证会传递用户的名称以将其视为管理员.
  • 当以配置为管理员的用户身份登录时,Reporting Services 查询有关当前用户权限的自定义身份验证将始终返回 true.
  • 我已将数据模型上传到 Reporting Services(使用内置的 Report Manager 应用),该模型使用我添加的数据源(也使用内置的 Report Manager 应用),该数据源连接到同一个盒子上的数据库.
  • 我有一个 ASP.NET MVC3 Web 应用(也在同一个盒子上),它被配置为使用 Reporting Services Web 服务来执行诸如列出现有报告、运行现有报告和启动 Report Builder 3 的链接之类的操作.
  • ASP.NET MVC3 Web 应用与 Reporting Services 共享用户登录信息,即 Reporting Services 使用的自定义身份验证通过查看与 Web 应用相同的数据来验证用户详细信息.
  • ASP.NET MVC3 网络应用可从外部使用.

问题:

  • 如果我远程登录 Web 应用程序,请通过链接启动 Report Builder 3,以 UserA 身份登录,使用带有选项的报表向导 >> 创建数据集 >> 选择数据模型(见上文)作为数据源 >> 选择1 个数据表(例如组织)>> 单击按钮预览数据 >> 单击下一步 -- BANG - REPORT BUILDER 3 HANGS.
  • 如果我在托管所有内容的服务器上本地登录 Web 应用程序,请通过链接启动 Report Builder 3,以 UserA 身份登录,使用带有选项的报表向导 >> 创建数据集 >> 选择数据模型(见上文)作为源数据>>选择1个数据表(例如组织)>>单击按钮预览数据>>单击下一步>>选择行/列组和值,报告样式并单击完成.然后我可以运行报告并保存它.-- 一切正常!

我看过的东西:

  • 如果我对 SQL Profiler 进行跟踪两个报告服务数据库和数据库数据模型在以下情况下使用它挂起它出现报告服务正在进入某种状态循环不断地询问Reporting Services 数据库(如果有)是任何正在运行的作业.当它起作用时它从不询问报告服务关于此时正在运行的作业.
  • 如果我使用数据模型在 Report Builder 3 中使用的数据源作为数据源,那么它确实可以工作.然而这会提示您登录 SQL Server 并要求您打开服务器和远程计算机上的 SQL Server 端口!不好.
  • If I do a SQL Profiler Trace against the both the Reporting Services database and the database that the Data Model is using in the case where it hangs it appears Reporting Services is getting into some kind of loop continuously asking the Reporting Services databases if there are any running jobs. When it works it never asks the Reporting Services about Running jobs at this point.
  • If I use the Data Source the Data Model uses in Report Builder 3 as the data source then it does work. HOWEVER this then prompts for a SQL Server login and requires the you open the SQL Server port on both the server and the remote machine! Not good.

这让我发疯.任何在使用 Reporting Services 2008 R2 和 Report Builder 3 的黑魔法方面拥有精英技能并能帮助解决这个问题的机构都应该获得所有计算奖项.

This is driving me crazy. Any body with elite skills in the black magic of using Reporting Services 2008 R2 and Report Builder 3 that can help be figure this out will be deserving of everying computing award going.

我再次在谷歌搜索时发现了这个(论坛帖子,Google 缓存) 并且非常兴奋,但不太明白海报所说的以及我试图遵循它所做的更改只是破坏了所有 Reporting Services 访问权限,因此我回滚了更改.不幸的是,该论坛已归档(而且有点垃圾),因此我无法联系或为海报留言.

I found this while Googling again (Forum post, Google Cache) and got really excited but couldn't quite make sense of what the poster was saying and changes I made trying to follow it just broke all Reporting Services access so I rolled back the changes. Unfortunately the forum is archieved (and a bit rubbish) so I can't contact or leave a message for the poster.

推荐答案

事实证明,这是由于 Microsoft 使用一个连接而未正确打开/关闭它的学生错误造成的.当我们打电话给他们时,MS 能够为我们提供这种解决方法:

It turns out that this is caused by a school boy error by Microsoft of using one connection and not opening/closing it appropriately. MS were able to give us this workaround when we called them:

基本上在您安装了 Report Builder 3 clickOnce 应用程序后,在您的计算机上找到它,然后在 app.config 文件的 system.net 标记内添加以下标记.

Basically after you've got the Report Builder 3 clickOnce app installed, locate it on your computer and then inside the system.net tag of the app.config file add the tags below.

<connectionManagement>
      <add address="*" maxconnection="1024"/>
</connectionManagement>

这篇关于SQL 2008 R2 - Reporting Services,在 Internet 上使用带有 Report Builder 3 的数据模型会导致崩溃,有什么想法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆