G
Guest
Hi,
I want to use Crystal Reports in my asp.net application. I get this error:
###
CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
###
I have read this solution and then I applied solution:
http://support.microsoft.com/default.aspx?scid=kb;en-us;319264
But I still get logon exception.
Is there any other solution?
My Code:
##############################################
RL.ReportFiles.Test002 crReportDocument = new RL.ReportFiles.Test002();
TableLogOnInfo crTableLogOnInfo = new TableLogOnInfo();
ConnectionInfo crConnectionInfo = new ConnectionInfo();
//Crystal Report Properties
CrystalDecisions.CrystalReports.Engine.Database crDatabase;
CrystalDecisions.CrystalReports.Engine.Tables crTables;
crConnectionInfo.ServerName = "SAKBULAK";
crConnectionInfo.DatabaseName = "BIZDESKDB";
crConnectionInfo.UserID = "BIZDESK_login";
crConnectionInfo.Password = "bizsengokdesk";
crDatabase = crReportDocument.Database;
crTables = crDatabase.Tables;
foreach(CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
{
crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
crTable.ApplyLogOnInfo(crTableLogOnInfo);
}
reportViewer.ReportSource = crReportDocument;
##############################################
I want to use Crystal Reports in my asp.net application. I get this error:
###
CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
###
I have read this solution and then I applied solution:
http://support.microsoft.com/default.aspx?scid=kb;en-us;319264
But I still get logon exception.
Is there any other solution?
My Code:
##############################################
RL.ReportFiles.Test002 crReportDocument = new RL.ReportFiles.Test002();
TableLogOnInfo crTableLogOnInfo = new TableLogOnInfo();
ConnectionInfo crConnectionInfo = new ConnectionInfo();
//Crystal Report Properties
CrystalDecisions.CrystalReports.Engine.Database crDatabase;
CrystalDecisions.CrystalReports.Engine.Tables crTables;
crConnectionInfo.ServerName = "SAKBULAK";
crConnectionInfo.DatabaseName = "BIZDESKDB";
crConnectionInfo.UserID = "BIZDESK_login";
crConnectionInfo.Password = "bizsengokdesk";
crDatabase = crReportDocument.Database;
crTables = crDatabase.Tables;
foreach(CrystalDecisions.CrystalReports.Engine.Table crTable in crTables)
{
crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
crTable.ApplyLogOnInfo(crTableLogOnInfo);
}
reportViewer.ReportSource = crReportDocument;
##############################################