Crystal Reports .NET "Load Report Failed" error

Netnoobie

Well-known member
Joined
Feb 6, 2003
Messages
94
Location
Philadelphia
Hello all. Im calling a very simple report from the CR .NET 9.1 version. When loading the report into the Viewer in my aspx application, I get the "Load Report Failed" error.

Now the closest thing Ive found that addresses this issue is :http://support.crystaldecisions.com/library/kbase/articles/c2011640.asp

but this article addresses the issues on 98 and winme. This is running on a client 2k box and even wont run on the server when the setup file is created and installed on the server. However, if I run the project on the dev machine the report comes up. Has anyone had this problem before? Ive done about everything I can think of up to now...

Thanks!
 
I resolved that issue. In my trying to configure the installation and other erros I was getting, I changed the directory that the Viewer was hitting for the reports.

But now Im getting a different error:
"Common Language Runtime detected an invalid program"

It seems like its from the license key Im inputting into the Regwiz, but Im using the 19 digit key supplied by Crystal like 2 months ago. Any thoughts?

Thanks.
 
Ok, so Ive been doing research on this error and it seems as though theres a problem with Crystal Reports not the license key. However, I cannot find a single web article that describes this error in detail and how to correct it.

When using CR do I need to package something in particular for installation on the server? Im not getting this error on my dev boxes, only on the server.

Thanks.
 
I resolved this and Im posting what I did as an FYI of sorts.

We had the 1.0 framework on the box then went to 1.1 reading that they can both be run on the same machine. I kept getting all kinds fo weird errors when calling simple Crystal Reports for two weeks now. simply uninstalled the 1.0 framework and everything works 100%. So I supopse Microsfot is correct in that the frameworks can sun side by side, but something with Crystal Reports doesnt like it.
 
when I make a setup and run this report it prompt "report load fail" but in vb.net8 it show correctly. my OS is vista basic.:(
pls help me quickly... thanks


Imports System.Data.OleDb
Imports System.IO.Directory
Imports CrystalDecisions

Public Class frmrep

Private Function fncGetData() As DataSet
Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & GetCurrentDirectory.Substring(0, GetCurrentDirectory.Length - 10) & "\dabirkhane2000.mdb"
Dim oleConnection1 As New OleDbConnection(strConn)
Dim strQuery As String
strQuery = andicator.lbloledbcach.Text
Dim oleDataAdapter1 As New OleDbDataAdapter(strQuery, oleConnection1)
Dim dstData As New DataSet
oleDataAdapter1.Fill(dstData, "dabirkhane")
Return dstData
End Function


Private Sub frmrep_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim strReportPath As String = GetCurrentDirectory()
If strReportPath.Substring(strReportPath.Length - 9) = "bin\Debug" Then
strReportPath = strReportPath.Substring(0, strReportPath.Length - 10)
End If
strReportPath &= "\CrystalReport1.rpt"
Dim rptdairkhane As New CrystalDecisions.CrystalReports.Engine.ReportDocument
rptdairkhane.Load(strReportPath)
Dim dsdata As DataSet = fncGetData()
rptdairkhane.SetDataSource(dsdata)
Me.crv.ReportSource = rptdairkhane

End Sub
End Class
 
Back
Top