Apologies if this is not the correct place; all obsolete links and roads led me here nonetheless. There appears to be a regression in recent datetime parsing changes to the Windows Forms Report Viewer control in NuGet package Microsoft.ReportingServices.ReportViewerControl.Winforms version 150.1427.0. If I supply a null value for a Date/Time parameter which is set to Allow null value, the report viewer throws a NullReferenceException during load/refresh. The exception is first thrown in the (presumably new) method
Microsoft.ReportingServices.Common.DateTimeUtil.ParseDateToAdditionalSettingFormat(String strDateTime, CultureInfo formatProvider). The release notes mention a change concerning datetime parsing. The issue does not occur in the prior version, 150.1404.0.
Create a new, empty report,
Add one parameter: Date/Time type and allow null values,
Configure the report viewer to load the report, and call
LocalReport.SetParameters()with a single
ReportParameterobject with a null value,
RefreshReport(); the exception is thrown.
Trying again, supply a non-null value for the parameter does not cause a problem. Is there a possible work around I might use until this is fixed that I might use, without having revert to the earlier package version?