cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

former_member188030
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Thanks for your reply Bhushan.

- It is the staging servers - 64 bit enviroment. I can generate fine in both my PC and development enviroment.

- The deployment is just X-Copy.

- I don't think there are any changes on the environment.

I had recycle the app pool and the problem doesn't seems to go away.

Will try clean the %temp% folder and check the IIS permissions.

Yin

former_member188030
Active Contributor
0 Kudos

Yin,


What does the application exactly do?

COuld you try a simple application to view report using ReportDocument, see if it works fine.

Deploy using VS Publish option, XCopy is not recomendded.

Also make sure that you have installed latest 64 bit runtimes.

[Document no longer available]

- Bhushan.

Message was edited by: Yael Tal

Former Member
0 Kudos

What I meant by XCopy is I used VS Publish to publish to a folder in my PC then copied these file to FTP and then download to the staging.

The application call the crystal API to generate PDF file and let user download the pdf file.

And yes, I installed 64bit runtimes Support Pack 2. Now I can see there is version 3.

I am still waiting for our hosting team to clean the %temp% folder and check the IIS permissions.

Will let you know the outcome as soon as I know.

Thanks for your help.

Former Member
0 Kudos

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.

Answers (0)