I'm in a bit of a muddle here, these reports worked fine, until I upgraded to the latest Reporting controls. Then I had some DLL issues and ended up uninstalling and re installing again.
The reports sit in a folder and are XML files.
These are deserialised for viewing
We are now getting the error - There was an error reflecting type 'Telerik.Reporting.Report'
This is the code that doe the de serialise:
'Create an XML reader object from the updated string
Using xmlReader As System.Xml.XmlReader = System.Xml.XmlReader.Create(New System.IO.StringReader(xmlString))
'Create the report object and assing it the deserialised report definition
Dim xmlSerializer As New System.Xml.Serialization.XmlSerializer(GetType(Telerik.Reporting.Report))
Dim report1 As New Telerik.Reporting.Report
report1 = xmlSerializer.Deserialize(xmlReader)
report1.Report.ReportParameters(0).Value = imagePath
report1.Report.ReportParameters(1).Value = Session("User_GUID").ToString
'Assing the report object to the report viewer
ReportViewer.Report = report1
I know its not the latest good practice but changing the serialiser to this
Dim xmlSerializer As New Telerik.Reporting.XmlSerialization.ReportXmlSerializer()
Dim report As Telerik.Reporting.Report = DirectCast(xmlSerializer.Deserialize(xmlReader), Telerik.Reporting.Report)
Gives the new error: - An error has occurred during xml serialization. The xml serializer cannot resolve type with name:
Searching the forum doesn't return any results, so guessing this is a new problem.