I have application in ASP.NET (C#) in which I use Sap Crystal Reports for Visual Studio. In VS everything works perfect. But when I deploy it to IIS \"Database Logon Failed\" er
Connection string error. your code update with this steps:
1.clear dataset connection.
2.set table or tables.
3.don't set datasource and dataset. becuase you sent data in tables to crystal report and do not need to connect to server or database.
4.refresh the reportdocument.
for example:
MyCrystalReportSource.ReportDocument.DataSourceConnections.Clear();
MyCrystalReportSource.ReportDocument.Database.Tables[0].SetDataSource(MyDataSet.Tables[0]);
MyCrystalReportSource.ReportDocument.Refresh();
MyCrystalReportSource.ReportDocument.ExportToHttpResponse(ExportFormatType.PortableDocFormat, HttpContext.Current.Response, true, reportTitle);