simply I want to retrieve a ssrs report snapshot and view it in a report viewer so I used this code
string urlReportServer = "http://workstation/ReportServer_WORKSERVER"; rptViewer.ProcessingMode = ProcessingMode.Remote; rptViewer.ServerReport.ReportServerUrl = new Uri(urlReportServer); rptViewer.ServerReport.ReportPath = "/main"; rptViewer.ServerReport.HistoryId = "4F1F8306-7493-49EC-8EA1-72F217F8E568";// which I got from the ReporServer database. rptViewer.ServerReport.Refresh();
then I got this error
The parameter value provided for 'snapshotID' does not match the parameter type. (rsParameterTypeMismatch)
- String was not recognized as a valid DateTime.
although I run the snapshot from the url normally and everything is working fine.