Tag: report viewer2016

ReportViewer错误401查看用户登录

在我的测试服务器上使用ReportViewer时,我收到了401未经授权的错误。 在我的本地环境中(配置指向测试服务器),我能够毫无问题地连接。 我试过看下面的解决方案,但没有运气。 一 二三 我使用的身份validation模式是Windows,而我的Windows凭据我可以访问报表服务器,我仍然无法连接。 在我的web.config中 … 我的控制器 private ReportViewer _reportViewer; public ReportController() { _reportViewer = new ReportViewer(); _reportViewer.ProcessingMode = ProcessingMode.Remote; _reportViewer.SizeToReportContent = false; _reportViewer.Width = Unit.Percentage(100); _reportViewer.Height = Unit.Pixel(893); string RptServerURL = ConfigurationManager.AppSettings[“MyReportServerUrl”]; _reportViewer.ServerReport.ReportServerUrl = new Uri(RptServerURL); } 因此,我可以查明错误,我如何以及在哪里可以看到我的代码尝试进行身份validation的用户? 我检查了exception,但我得到的所有信息都是未经授权的,没有告诉我的用户正在使用。