Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reporting services ssrs错误超出了最大请求长度_Reporting Services_Ssrs 2016 - Fatal编程技术网

Reporting services ssrs错误超出了最大请求长度

Reporting services ssrs错误超出了最大请求长度,reporting-services,ssrs-2016,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

我在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)

报表管理器站点上的上载选项也不起作用。

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

 httpRuntime executionTimeout = "9000" maxRequestLength="500000"

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

您需要修改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”maxRequestLength=“500000”


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

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

不过这是一个简单的解决办法。您必须调整web应用程序的web.config,对于reporting server,它通常是这样的:

C:\Program Files\Microsoft SQL Server\MSSQL.2\Reporting Services\ReportServer 找到reporting services实例的web.config文件,将其打开,并跟踪类似以下内容的行

executionTimeout = “9000” />
现在只需在其中添加一个max request length属性即可解决问题,并根据需要调整大小。这是5毫克

executionTimeout = “9000” maxRequestLength=”500000″ />
现在您需要重新启动IIS。开始->运行->“iisreset”


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


那么您可能不需要将默认大小更改为5mb或488mb?不确定这是否适用,但webconfig.maxrequestLength可能以KB为单位,而不是以字节为单位