I am trying to write a VB.net application to render SSRS Reports. When calling the LoadReport ReportExecutuion2005 I get the following Error:
A first chance exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
Additional information: System.Web.Services.Protocols.SoapException: The parameter value provided for 'snapshotID' does not match the parameter type. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ParameterTypeMismatchException: The parameter value provided for 'snapshotID' does not match the parameter type. ---> System.FormatException: String was not recognized as a valid DateTime.
at Microsoft.ReportingServices.WebServer.ReportExecution2005Impl.LoadReport(String Report, String HistoryID, ExecutionInfo2& executionInfo)
at Microsoft.ReportingServices.WebServer.ReportExecutionService.LoadReport(String Report, String HistoryID, ExecutionInfo& executionInfo)
If there is a handler for this exception, the program may be safely continued.
I have previously called the ReportServices2010 GetItemParameters and the report in question has 7 parameters as follows:
MemberHealthPlanID
AdjudicationDate
AddressLine1
AddressLine2
AddressLine3
AddressLine4
AddressLine5
I have looked at the report's configuration and I do not have caching enabled and there are no reporthistory items or snapshots of the report. FilePathandName variable is set correctly too. Is this a SSRS configuration issue or a code issue. I'm attaching the code and I have validated my WSDL entry points are correct. ANY Help is appreciated.
' LoadReport call is throwing SnapShotID datatype mismatch (Not Valid Datetime)
execInfo = rsExec.LoadReport(FilePathAndName,
"en-us")