Hi Chiranjiv,
On further analysis of the shared error detail, the mentioned problem occurs when the datasource for the report is not loaded at our end. We suspect the mentioned problem occurs only when the “ProcessingMode” is not specified as Local when the datasource value for the report passed locally. If we pass the datasource value locally then we need to specify the processing mode as local as shown in below code example.
|
public void OnInitReportOptions(ReportViewerOptions reportOption)
{
string basePath = _hostingEnvironment.WebRootPath;
FileStream inputStream = new FileStream(basePath + @"\ReportRDL\Preluari1.rdlc", FileMode.Open, FileAccess.Read);
reportOption.ReportModel.Stream = inputStream;
reportOption.ReportModel.ProcessingMode = ProcessingMode.Local;
} |
For your reference we have prepared a WebAPI and Angular sample which can be downloaded from below location,
If the issue still persists, then revert the shared sample with issue reproducible procedure which would be helpful for us to validate the mentioned at our end.
Regards,
Mageshyadav.M