cancel
Showing results for 
Search instead for 
Did you mean: 

Report.Load Error with ASP application

Former Member
0 Kudos

Hi,

I experienced a few instances where my the follow statement where my ASP application (using VS2005, CRXI-R2+SP4, Datasets and CR Viewer on the server) thows an error on my server (running Server 2003).

Dim Report As CrystalDecisions.CrystalReports.Engine.ReportDocument = _

New CrystalDecisions.CrystalReports.Engine.ReportDocument()

Try

Report.Load(Server.MapPath("~/Private/Event/WebEvent.rpt"))

Catch ex As Exception

JavaMessage("Report Not Found")

Exit Sub

End Try

I don't know what the exception is at this point. But something happens and the crystal reports in all my websites break uniformly. I need to restart IIS to get things back working. This has happended to me 3x now.

Any ideas?

Thanks,

Eric

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

As a best practice use Close() and Dispose() method also gc.Collect();

Check if this helps!!

Amit

Answers (0)