Skip to Content
0
Dec 31, 2020 at 08:06 AM

Crystal report was working fine and it chrashes (nullreferenceexception)

63 Views

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 :)