Skip to Content
0
Former Member
Jun 10, 2009 at 06:33 PM

Log On Failed. COMException (0x80000000): No Error.

339 Views

Version of Crystal Reports Designer: 12.0.0683

Visual Studio 2005

OS Vista Ultimate

I have designed a report that uses an XML file as a data source. In the deigner, the connection I am using is XML and Web Serivces. I specify the XML and the schema file.

I have a Windows application that creates a dataset from an XML file and sets it as the report's data source.

After I run VerifyDatabase I get the following error:

Log on failed., System.Runtime.InteropServices.COMException (0x80000000):

No error.

at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.VerifyDatabase()

at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.VerifyDatabase()

at CrystalDecisions.CrystalReports.Engine.ReportDocument.VerifyDatabase()

Here is my code:

Try

Dim PathToDB As String = mReportLog

Me.crPrinterUse = New AXIARReports

Dim ds As Data.DataSet = clsDataSet.ReportDataSet(PathToDB)

Me.crPrinterUse.SetDataSource(ds)

Me.crPrinterUse.Database.Tables(0).SetDataSource(ds.Tables(0))

Dim SubReport As CrystalDecisions.CrystalReports.Engine.ReportDocument

For i As Integer = 0 To Me.crPrinterUse.Subreports.Count - 1

SubReport = Me.crPrinterUse.Subreports(i)

SubReport.SetDataSource(ds)

SubReport.Database.Tables(0).SetDataSource(ds.Tables(0))

Next

Me.crPrinterUse.VerifyDatabase()

Me.crv.ReportSource = Me.crPrinterUse

Catch ex As Exception

MessageBox.Show("Error setting report data: " & ex.Message & vbLf & "Check the log file for more details.", _

"Report Data Error", MessageBoxButtons.OK, MessageBoxIcon.Error)

cGlobal.Log("Error setting report data: " & ex.Message & ", " & ex.InnerException.ToString)

Throw New Exception(ex.Message)

End Try

I ran the modules appliacation and noticed that the development machine version is slightly different from the deployed machine.

Version of file on the deployed machine: 12.0.0.840

Could this be causing my porblem? If so, how do I solve this?

I also have VS 2008 installed on my machine.

Thanks,

Karen