Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hello all. I'm 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 I've 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 won't 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? I've done about everything I can think of up to now...

 

Thanks!

Posted

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 I'm getting a different error:

"Common Language Runtime detected an invalid program"

 

It seems like it's from the license key I'm inputting into the Regwiz, but I'm using the 19 digit key supplied by Crystal like 2 months ago. Any thoughts?

 

Thanks.

Posted

Ok, so I've been doing research on this error and it seems as though there's 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? I'm not getting this error on my dev boxes, only on the server.

 

Thanks.

Posted

I resolved this and I'm 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 doesn't like it.

  • 6 years later...
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...