【问题标题】:ssrs error Maximum request length exceededssrs 错误 超出最大请求长度
【发布时间】:2016-11-17 04:23:18
【问题描述】:

我在 SSRS 2016 的报表生成器中打开一个报表文件(在 SSRS 2014 中创建)以便将其保存到报表管理器站点或预览它,我收到此错误:

System.Web.Services.Protocols.SoapException: There was an exception running
the extensions specified in the config file. ---> System.Web.HttpException: 
  Maximum request length exceeded.
at System.Web.HttpRequest.GetEntireRawContent()
at System.Web.HttpRequest.get_InputStream()
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
   --- End of inner exception stack trace ---
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, 
 HttpContext context, HttpRequest request, HttpResponse response, Boolean& 
   abortProcessing)

报告管理器网站上的上传选项也不起作用。

【问题讨论】:

    标签: reporting-services ssrs-2016


    【解决方案1】:

    此错误是由于 .rdl 文件的大小造成的。我的 .rdl 文件大约 4MB,所以我只需要在 web.config 文件的 httpRuntime 行增加 maxRequestLength 的值,然后重新启动 iis:

     httpRuntime executionTimeout = "9000" maxRequestLength="500000"
    

    在这种情况下,我将最大大小设置为 5 MB。

    【讨论】:

    • 是 5mb 还是 488mb?不确定这是否适用,但 webconfig.maxrequestLength 可能以 KB 为单位而不是字节 docs.microsoft.com/en-us/dotnet/api/…
    • 我使用的是 SQL Server Reporting Services 2012。我没有重新启动 IIS,而是重新启动了 SQL Server Reporting Services。工作正常。
    【解决方案2】:

    最近我不得不更改图片标题时遇到了同样的问题。 我发现每次添加图像资源时,它都会将其保存在图像下的报告中。 检查您是否可以在此处删除任何内容:

    【讨论】:

    • 那么您可能不需要更改默认大小
    【解决方案3】:

    您需要修改 httpruntime 元素下的两个 Web.config 文件属性。你会在
    的路径下找到 1)报表管理器\Program Files\Microsoft SQL Server\MSSQL.12\Reporting Services\ReportManager 2)报表服务器 \Program Files\Microsoft SQL Server\MSSQL.12\Reporting Services\ReportServer

    httpRuntime executionTimeout = "9000" ma​​xRequestLength="500000"

    用粗体文本编辑上面的行(如##sqluser 所述)

    【讨论】:

      【解决方案4】:

      错误:“SQL Reporting Services 错误 - 超出最大请求长度”

      不过,这很容易解决。您必须为 Web 应用程序调整 web.config,在报告服务器的情况下,它通常是这样的:

      C:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer 找到您的报告服务实例的 web.config 文件,打开它,然后找到类似这样的行

      executionTimeout = “9000” />
      

      现在只需在其中添加一个最大请求长度属性即可解决问题,根据需要调整大小。这是 5 兆。

      executionTimeout = “9000” maxRequestLength=”500000″ />
      

      现在您需要重新启动 IIS。开始->运行->”iisreset”

      https://www.isolutionspartners.com/2011/09/16/sql-reporting-services-error-maximum-request-length-exceeded/

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-04-20
        • 1970-01-01
        • 2017-03-04
        相关资源
        最近更新 更多