ReadTimeout错误'System.InvalidOperationException'

时间:2018-10-27 10:09:23

标签: c#

我尝试通过filestream将子报告放入报告中时,出现以下错误:

  

ReadTimeout ='subReport.ReadTimeout'产生类型的异常   'System.InvalidOperationException'

我写的代码是:

Stream subReport = new FileStream (Server.MapPath ("~ / Rpts / Rdlc /" + _ds.GetRdlc ()), FileMode.Open, FileAccess.Read);
reportViewer.LocalReport.LoadSubreportDefinition ("subreport", subReport);

0 个答案:

没有答案