Skip to Content
0
Former Member
Jan 22, 2011 at 03:10 PM

Logon Failed Crystal Reports on Oracle

216 Views

Hi

When I logon crystal report in my code behinde I saw Logon Failed error. But I can connect my database in crystal report design mode.I can run my oracle store procedure on crystal report designe time But when I write my datasource = localhost/orcl, password and userId on code behinde I get logon failed error. I use this code for sql server database. It is work fine. But oracle database dont login? Why I get this error?

view plaincopy to clipboardprint?

1. var info = new TableLogOnInfo

2. {

3. ConnectionInfo = new ConnectionInfo

4. {

5. DatabaseName = "",

6. ServerName = "localhost/orcl",

7. //IntegratedSecurity = true

8. UserID = "user",

9. Password = "pass"

10. }

11. };

12. foreach (Table table in reportClass.Database.Tables)

13. {

14. table.ApplyLogOnInfo(info);

15. }

16.

17. return reportClass;

var info = new TableLogOnInfo

{

ConnectionInfo = new ConnectionInfo

{

DatabaseName = "",

ServerName = "localhost/orcl",

//IntegratedSecurity = true

UserID = "user",

Password = "pass"

}

};

foreach (Table table in reportClass.Database.Tables)

{

table.ApplyLogOnInfo(info);

}

return reportClass;

Thanks for your interest

Regards