我正在尝试将SSRS报告集成到我的网页中.代码如下:
ReportViewer1.ProcessingMode = rocessingMode.Remote; ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://localhost/reportserver"); ReportViewer1.ServerReport.ReportPath = "/Report Project1/Reconciliation"; ListparamList = new List (); paramList.Add(new ReportParameter("StartDate", startdate.ToString(), false)); paramList.Add(new ReportParameter("EndDate", enddate.ToString(), false)); this.ReportViewer1.ServerReport.SetParameters(paramList); ReportViewer1.Visible = true;
我尝试运行此报告时收到此错误:
The permissions granted to user 'COMPUTERNAME\\ASPNET' are insufficient for performing this operation. (rsAccessDenied)"} System.Exception {Microsoft.Reporting.WebForms.ReportServerException}
谁能告诉我我做错了什么?
为了澄清Erikk的答案.
您要设置以修复此错误的特定安全权限集(报表管理器中至少还有两种类型的安全设置)可在报表文件夹的"属性"选项卡的"安全"菜单选项中找到看着.
毫无疑问,你不应该对Home文件夹的"Everyone"组给予完全许可,因为这会继承到所有其他项目和子文件夹并打开一个巨大的安全漏洞.