Hi All,
I am using crystal report in asp.net. In my website i am using PUSH method where i have used typed dataset as a source for my report.
I am filling dataset in my code behind. Following are the code
ReportDocument rpt = new ReportDocument(); objDataTable = **** // filling data table object dsMonthlyConsumption.Tables.Add(objDataTable); rpt.Load(Server.MapPath("~/Pages/SystemAdmin/Reports/")
+ "monthlyConsumption.rpt");
rpt.SetDataSource(dsMonthlyConsumption); CrystalReportViewer1.ReportSource =
rpt; CrystalReportViewer1.DataBind(); CrystalReportViewer1.DisplayToolbar = false;
When i run the page i am getting following error
Logon failed. Details: crdb_adoplus : Object reference not set to an instance of an object. Error in File C:\DOCUME~1\ MyMachine\ASPNET\LOCALS~1\Temp\CrystalReport {7DEF4E8F-DCD1-414A-9242-D51EFBF4A2FF}.rpt: Unable to connect: incorrect log on parameters
I am not getting why i need to logon to dataset? Please help how to solve problem?