Skip to Content
author's profile photo Former Member
Former Member

'CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' is not marked as serializable.

Hello,

Up until yesterday afternoon, the crystal report was generating PDF without any problem from ASP.NET site on Window 2008 server.

But yesterday, I got strange error. See below:

Application ID: DefaultDomain

Process ID: 4768

Exception: System.Runtime.Serialization.SerializationException

Message: Type 'CrystalDecisions.CrystalReports.Engine.InternalException' in Assembly 'CrystalDecisions.Shared, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' is not marked as serializable.

StackTrace: at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)

at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, ObjectWriter objectWriter, SerializationBinder binder)

at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)

at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream serializationStream, Object graph, Header[] headers, Boolean fCheck)

at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.SerializeObject(Object obj, MemoryStream stm)

at System.AppDomain.Serialize(Object o)

at System.AppDomain.MarshalObject(Object o)

Please help.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Apr 27, 2012 at 10:19 AM

    Hi,

    Need more information

    - Is it happening on dev or production machine?

    - Is it a 32 bit or a 64 bit app?

    - Considering that its a web app, how did you deploy the app?

    - Any changes made to the environment since the last time app worked?

    Things to try

    - clean the %temp% folder.

    - Check if the IIS has permissions to create, delet temp files from the temp folder.

    - recycle the app pool, run the app.

    - Bhushan.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Finally got it working now. The actual cause of error and what crystal report logged in event log were completely different.

      The reason the crystal was crashing is that it was passed with wrong database name.

      Instead of logging in the event log as "Cannot find database or table etc.", it logged as the above error message and crash the App pool. I don't really understand why.

      Thanks for your help.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.