Exception Details: CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed. What's wrong

  • Thread starter Thread starter cw
  • Start date Start date
C

cw

Hi all,
I'm trying to generate some crystal report using ASP.NET. However, i
stucked on the avove error.. below is the code for web form 1:


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

'Put user code to initialize the page here
Dim tbCurrent As CrystalDecisions.CrystalReports.Engine.Table
Dim tliCurrent As CrystalDecisions.Shared.TableLogOnInfo

For Each tbCurrent In cbsMain.CreateReport.Database.Tables
tliCurrent = tbCurrent.LogOnInfo
With tliCurrent.ConnectionInfo
.ServerName = "localhost"
.UserID = "UID"
.Password = "PASSWORD"
.DatabaseName = "DB_NAME"
End With
Next

tbCurrent.ApplyLogOnInfo(tliCurrent)

Me.cvwMain.ReportSource = cbsMain
End Sub
 
Back
Top