This is a migrated thread and some comments may be shown as answers.

Report Viewer Serialization Exception

1 Answer 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aaron
Top achievements
Rank 1
Aaron asked on 27 Jan 2014, 11:14 PM
Hi,

I'm running Windows 8.1
Visual Studio Pro 2012 Update 4
Telerik Reporting 7.2.13.1016
Telerik Controls for Silverlight version 2013.3.1016.1050

I have a ReportViewer that is throwing the following exception.


Unhandled exception at line 59, column 13 in http://localhost:22414/CityLaw.aspx

0x800a139e - JavaScript runtime error: Unhandled Error in Silverlight Application

Code: 4004   

Category: ManagedRuntimeError      

Message:
System.Runtime.Serialization.SerializationException: There was an error
deserializing the object of type System.String[]. '.', hexadecimal value 0x00,
is an invalid character. Line 1, position 1. ---> System.Xml.XmlException:
'.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.

   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlReader.MoveToContent()
   at System.Xml.XmlReader.IsStartElement(String localname, String ns)
   at System.Xml.XmlDictionaryReader.XmlWrappedReader.IsStartElement(String localName, String namespaceUri)
   at System.Xml.XmlDictionaryReader.IsStartElement(XmlDictionaryString localName, XmlDictionaryString namespaceUri)
   at System.Runtime.Serialization.XmlReaderDelegator.IsStartElement(XmlDictionaryString localname, XmlDictionaryString ns)
   at System.Runtime.Serialization.XmlObjectSerializer.IsRootElement(XmlReaderDelegator reader, DataContract contract, XmlDictionaryString name, XmlDictionaryString ns)
   at System.Runtime.Serialization.DataContractSerializer.InternalIsStartObject(XmlReaderDelegator reader)
   at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName)
   at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)

   --- End of inner exception stack trace ---

   at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName)
   at System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader reader)
   at System.Runtime.Serialization.XmlObjectSerializer.ReadObject(Stream stream)
   at Telerik.ReportViewer.Silverlight.InvalidSessionsHelper.Load()
   at Telerik.ReportViewer.Silverlight.ReportViewer.ClearInvalidSessions()
   at Telerik.ReportViewer.Silverlight.ReportViewer.Initialize()
   at Telerik.ReportViewer.Silverlight.ReportViewer.OnApplyTemplate()
   at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)


The ReportViewer is placed in a ChildWindow.  After the Loaded event of the ChildWindow completes, the exception is thrown.  I've so far been unable to reproduce the problem in a sample project.  Any guidance on how to further troubleshoot the problem would be appreciated.


Thanks!
Aaron







1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 30 Jan 2014, 04:57 PM
Hello Aaron,

Other community member shared with us the same exception stack trace, appearing after a system blue screen. He updated us that after clearing the Silverlight Isolated Storage, the issue disappeared.

Please check also if the TRRVInvalidSessions.tmp located in the isolated storage and created by the viewer. Let us know if the file was empty at the time of the error.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

Tags
General Discussions
Asked by
Aaron
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or