我正在尝试将SSRS报告集成到我的网页中.代码如下:
ReportViewer1.ProcessingMode = rocessingMode.Remote;
ReportViewer1.ServerReport.ReportServerUrl = new Uri("http://localhost/reportserver");
ReportViewer1.ServerReport.ReportPath = "/Report Project1/Reconciliation";
List<ReportParameter> paramList = new List<ReportParameter>();
paramList.Add(new ReportParameter("StartDate", startdate.ToString(), false));
paramList.Add(new ReportParameter("EndDate", enddate.ToString(), false));
this.ReportViewer1.ServerReport.SetParameters(paramList);
ReportViewer1.Visible = true;
Run Code Online (Sandbox Code Playgroud)
我尝试运行此报告时收到此错误:
The permissions granted to user 'COMPUTERNAME\\ASPNET' are insufficient for performing this operation. (rsAccessDenied)"}
System.Exception {Microsoft.Reporting.WebForms.ReportServerException}
Run Code Online (Sandbox Code Playgroud)
谁能告诉我我做错了什么?
为了澄清Erikk的答案.
您要设置以修复此错误的特定安全权限集(报表管理器中至少还有两种类型的安全设置)可在报表文件夹的"属性"选项卡的"安全"菜单选项中找到看着.
毫无疑问,你不应该对Home文件夹的"Everyone"组给予完全许可,因为这会继承到所有其他项目和子文件夹并打开一个巨大的安全漏洞.
问题是您的 ASP.NET 工作进程没有执行您想要执行的操作的权限。
在服务器上编辑此用户(MACHINENAME\ASPNET),并为其授予更多权限(可能需要写入权限等)。
您还需要将 MACHINENAME\ASPNET 作为用户添加到 SSRS 正在使用的 SQL 数据库中。
归档时间: |
|
查看次数: |
40233 次 |
最近记录: |