繁体   English   中英

SSRS报告门户管理

[英]SSRS Report Portal Management

我正在使用一个C#实用程序,它将帮助客户在其站点上发布SSRS报告。 这是我的代码:

public void createFolder()
    {
        ReportingService2010 rs = new ReportingService2010();
        rs.Credentials = System.Net.CredentialCache.DefaultCredentials;

        // Create a custom property for the folder.
        Property newProp = new Property();
        newProp.Name = "Department";
        newProp.Value = "Finance";
        Property[] props = new Property[1];
        props[0] = newProp;

        string folderName = "Budget";

        try
        {
            rs.CreateFolder(folderName, "/", props);
            Console.WriteLine("Folder created: {0}", folderName);
        }

        catch (SoapException e)
        {
            Console.WriteLine(e.Detail.InnerXml);
        }
    }

我收到以下错误:

ErrorCode xmlns="http://www.microsoft.com/sql/reportingservices">rsAccessDenied</ErrorCode><HttpStatus xmlns="http://www.microsoft.com/sql/reportingservices">400</HttpStatus><Message xmlns="http://www.microsoft.com/sql/reportingservices">The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are insufficient for performing this operation.</Message><HelpLink xmlns="http://www.microsoft.com/sql/reportingservices">https://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsAccessDenied&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=13.0.1601.5</HelpLink><ProductName xmlns="http://www.microsoft.com/sql/reportingservices">Microsoft SQL Server Reporting Services</ProductName><ProductVersion xmlns="http://www.microsoft.com/sql/reportingservices">13.0.1601.5</ProductVersion><ProductLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">127</ProductLocaleId><OperatingSystem xmlns="http://www.microsoft.com/sql/reportingservices">OsIndependent</OperatingSystem><CountryLocaleId xmlns="http://www.microsoft.com/sql/reportingservices">1033</CountryLocaleId><MoreInformation xmlns="http://www.microsoft.com/sql/reportingservices"><Source>ReportingServicesLibrary</Source><Message msrs:ErrorCode="rsAccessDenied" msrs:HelpLink="https://go.microsoft.com/fwlink/?LinkId=20476&amp;EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&amp;EvtID=rsAccessDenied&amp;ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&amp;ProdVer=13.0.1601.5" xmlns:msrs="http://www.microsoft.com/sql/reportingservices">The permissions granted to user 'NT AUTHORITY\NETWORK SERVICE' are insufficient for performing this operation.</Message></MoreInformation><Warnings xmlns="http://www.microsoft.com/sql/reportingservices" />

任何想法?

请注意,此练习的重点不仅在于使它起作用,而且要知道它可以在客户端上理想地运行,而无需进行任何调整。

感谢帮助。

您的问题还不清楚。 听起来您不确定为什么会出现权限错误。 答案是您需要创建一个新角色。 假设 (在您发表评论后)您的问题是如何使用C#做到这一点。

您可以使用CreateRole()方法 ,该方法仅适用于SSRS纯模式。 如果SSRS以SharePoint集成模式安装,则除了使用UI外,没有其他受支持的方法。

在SharePoint模式下调用此方法时,将引发OperationNotSupportedSharePointMode异常

暂无
暂无

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

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