Exception "Collection is read-only" has been thrown after version upgrade

1 posts, 0 answers
  1. Seokjoon
    Seokjoon avatar
    2 posts
    Member since:
    Nov 2014

    Posted 26 Feb Link to this post

    Hi, our company upgrade telerik report from version Q2 2011 SP1 to Q3 2013.

    I upgraded telerik version with upgrade wizard, then exception occured.

    =================

    Type: Telerik.Reporting.XmlSerialization.Current.ReportSerializable`1[xxxxxx.Report.PaymentReports.Complete1099Report]
    Exception has been thrown by the target of an invocation.
    Exception has been thrown by the target of an invocation.
    Collection is read-only.
    at Telerik.Reporting.Xml.ObjectXmlReader.CreateInstance(Type type, String name)
    at Telerik.Reporting.Xml.ObjectXmlReader.CreateInstance(Type type)
    at Telerik.Reporting.Xml.ObjectXmlReader.ReadObject(Type type)
    at Telerik.Reporting.Xml.ObjectXmlReader.ReadXmlElement(String name)
    at Telerik.Reporting.Xml.ObjectXmlReader.ReadValue(Type type, String text)
    at Telerik.Reporting.Xml.ObjectXmlReader.ReadProperty(Object obj, PropertyDescriptor prop, Type propType)
    at Telerik.Reporting.Xml.ObjectXmlReader.ReadProperties(Object obj)
    at Telerik.Reporting.Xml.ObjectXmlReader.ReadObject(Type type)
    at Telerik.Reporting.Xml.ObjectXmlReader.ReadXmlElement(String name)
    at Telerik.Reporting.Xml.ObjectXmlReader.Deserialize()
    at Telerik.Reporting.Xml.XmlSerializer.Deserialize(TextReader reader)
    at Telerik.Reporting.Processing.ReportSourceSerializer.Deserialize[T](String xml)
    at Telerik.ReportViewer.WebForms.SerializableReportSource.OnDeserialized(StreamingContext context)
    at System.Runtime.Serialization.ObjectManager.RaiseDeserializationEvent()
    at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
    at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
    at System.Web.Util.AltSerialization.ReadValueFromStream(BinaryReader reader)
    at System.Web.SessionState.SessionStateItemCollection.ReadValueFromStreamWithAssert()
    at System.Web.SessionState.SessionStateItemCollection.DeserializeItem(String name, Boolean check)
    at System.Web.SessionState.SessionStateItemCollection.get_Item(String name)
    at System.Web.SessionState.HttpSessionStateContainer.get_Item(String name)
    at Telerik.ReportViewer.WebForms.ViewerStateFactory.HttpSessionStateStorage.get_Item(String key)
    at Telerik.ReportViewer.WebForms.ViewerState.GetSessionReportSource(String key)
    at Telerik.ReportViewer.WebForms.ParametersPage.get_ReportDocument()
    at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
    at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
    at System.Web.UI.Adapters.ControlAdapter.CreateChildControls()
    at System.Web.UI.Control.EnsureChildControls()
    at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    =================

    We are using ReadOnlyCollection to get parameters from reports.config. In previous version, it works perfectly but I have no idea

    what has been changed and what I should do to fix this issue.

    Is there anyone has the same issue before?

     

    Thanks

    Joon

     

Back to Top