Hey!
I'm developing a Crystal Reports-Page in Visual Studio 2008 with C#
and a weird error shows up all the time. I searched Google and found a
lot of people with the same errors but no one had a solution for this.

When I submit the form and fill the data into a datatable & a dataset
the first of two reports on the page loads perfectly but the second
report on the page comes up with the following error:

Logon failed. Details: crdb_adoplus : Object reference not set to an
instance of an object. Error in File [...]\Temp\temp_05e54150-
b4f5-427a-848f-4b402f507daf
{3F31E28C-9C91-47B8-84AB-95831FAB3419}.rpt: Unable to connect:
incorrect log on parameters.


As soon as I try to export the working report via the EXPORT button,
it comes up with the same error.

Parts of my C#-Code:

CrystalReport1 cr = new CrystalReport1();
            cr.SetDatabaseLogon("ccc", "ddd");
            cr.Load(Server.MapPath("~\\CrystalReport1.rpt"));
            cr.SetDataSource(DataSet1);
            CrystalReportViewer1.ReportSource = cr;

            CrystalReport1 cr2 = new CrystalReport1();
            cr2.SetDatabaseLogon("aaa", "bbb");
            cr2.Load(Server.MapPath("~\\CrystalReport1.rpt"));
            cr2.SetDataSource(DataSet2);
            CrystalReportViewer2.ReportSource = cr2;



Can anybody help me? I've been wasting a lot of time on this problem
without any solution...

Thanks a lot
-r.

Reply via email to