简体   繁体   English

SSRS ReportViewer控件凭据

[英]SSRS ReportViewer Control Credentials

I'm working on a recently created server that was built to house a migrated version of SSRS, from SSRS 05 to 08. 我正在使用最近创建的服务器,该服务器旨在容纳从SSRS 05到08的SSRS迁移版本。

Previously, we had no issues with connectivity from the IIS server to the SSRS server via the report viewer control and we did not supply credentials at that time. 以前,我们没有通过报告查看器控件从IIS服务器到SSRS服务器的连接问题,并且那时我们没有提供凭据。 Now, when we try to use the viewer we get back; 现在,当我们尝试使用查看器时,我们会回来; "The request failed with HTTP status 401: Unauthorized." “请求失败,HTTP状态为401:未授权。”

Obviously that is a new issue that we have never had before even though we never used credentials in the first place. 显然,这是一个从未有过的新问题,尽管我们一开始从未使用过凭据。 So that is my first question... The new server is sitting in the same "place" as the old one. 所以这是我的第一个问题...新服务器与旧服务器位于同一“位置”。 IP, Domain, Subnet is the same. IP,域,子网相同。 Users have been set up the same, and the SSRS configuration appears to be the same. 用户设置相同,并且SSRS配置似乎相同。 What could be the difference that is causing the error? 造成错误的原因可能是什么?

Also, i've been doing some testing, and I realized that I can access that server and get the reports in that environment by pointing my dev environment running in visual studio 2008 to that server without using credentials. 另外,我一直在做一些测试,我意识到我可以通过将我在Visual Studio 2008中运行的开发环境指向该服务器而不使用凭据来访问该服务器并在该环境中获取报告。 I'm assuming by not setting the report viewer objects serverreport.reportservercredentials to something and leaving that property as a null value that it is using something else? 我假设不将报表查看器对象serverreport.reportservercredentials设置为某种值,而将该属性保留为空值,则表示它正在使用其他值? possibly my windows user credentials? 可能是我的Windows用户凭据? to access the reporting server. 访问报告服务器。 (That would be my second question.) (这是我的第二个问题。)

And finally. 最后。 I decided to bite the bullet and implement credentials on the report viewer. 我决定咬牙切齿,并在报表查看器上实现凭据。 When i create the credentials for the local user on the ssrs server that was created for this purpose, and is also listed in the report manager as a browser, i get the request failed error. 当我在为此目的而创建的ssrs服务器上为本地用户创建凭据时,并且在报表管理器中也将其列为浏览器时,出现请求失败错误。 My third question is; 我的第三个问题是: Is there something that I'm not thinking of for this type of implementation? 对于这种类型的实现,我没有想到什么吗?

Please let me know if there are any questions or things that i need to clarify with in my post. 如果我有任何需要澄清的问题或疑问,请告诉我。

I ended up going down a different route. 我最终走了一条不同的路线。

There were two issues... first. 有两个问题。 the application on the web server was running as a local user. Web服务器上的应用程序以本地用户身份运行。 And the old SSRS server was set up to accept anonymous users. 并将旧的SSRS服务器设置为接受匿名用户。

To remedy this, I had our net work guys create a new domain account. 为了解决这个问题,我让我们的网络管理员创建了一个新的域帐户。 I then changed the app pool identity for the application to use that domain account, and gave it list and write permissions on the temp folder and added it to the correct groups in windows. 然后,我更改了应用程序的应用程序池标识以使用该域帐户,并为它提供了对temp文件夹的列表和写入权限,并将其添加到Windows中的正确组中。

I then gave that domain user browse ability on the reporting server. 然后,我为域用户提供了在报表服务器上的浏览功能。

this worked for 2.0+ apps... now i just need to figgure out what folders the user needs access to for the 1.1 apps. 这适用于2.0+应用程序...现在我只需要弄清楚用户需要访问1.1应用程序的文件夹。

(ps... i also found that the domain user actually works when i pass credentials via the report viewer control in .net.) (ps ...我还发现,当我通过.net中的报表查看器控件传递凭据时,域用户实际上可以工作。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM