cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal report was working fine and it chrashes (nullreferenceexception)

former_member721538
Discoverer
0 Kudos

Hello to all,

i made a web application a long time ago in vb.net that creates pdf document with CRYSTAL REPORT (v13.0.26.3348 64 bits). This web app is installed on a W10 server.

It worked fine until this tuesday. I was on holiday so i didn't make any change ; there was no windows update too.

Now it crashes everytime we try to create a pdf ; there's no problem with data as it works fine on my local computer but not on the server.

So here is my simple code :

Dim ds As DataSet = New DataSet()

Dim dtEntete As DataTable = CreerDatatableEntete()

...

Dim dr As DataRow = dtEntete.NewRow()

...

dtEntete.Rows.Add(dr)

...

crpt.Load(reportFile)

crpt.SetDataSource(ds)

...

It crashes on "Load" line or "SetDataSource" but I think that it chashes on "SetDataSource".

What is strange is that it takes 15 minutes to crash, and then an error "null reference exception" is returned.

Does anybody have an idea on what could be the problem ?

Thanks in advance and happy new year 🙂

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Try deleting all files in the User and Windows \temp folders.

If the report uses Parameters MS installed a patch that now blocks Flash, CR converted to HTML5 to do the parameter prompts.

Upgrade to SP 29 and see if that works.

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

Answers (1)

Answers (1)

former_member721538
Discoverer
0 Kudos

Hello,

in fact, the error is on SetDataSource and is "Failed to load database information". I've changed nothing on my code. The "database" is an xsd and has not changed too.

I've searched on the internet ; many people have ever had this error but i've found nothing that can correct my problem. 😕 😕 😕