ssrs 错误超出最大请求长度

sql*_*ser 5 reporting-services ssrs-2016

我在 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)
Run Code Online (Sandbox Code Playgroud)

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

sql*_*ser 5

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

 httpRuntime executionTimeout = "9000" maxRequestLength="500000"
Run Code Online (Sandbox Code Playgroud)

在本例中,我将最大大小设置为 5 MB。