Load Report Failed error at setdatabaselogon
-
Tuesday, March 16, 2010 12:01 PMI have a report run from visual studio 2008. I logon to the database using the setdatabaselogon command but on one machine it is very temperamental it only works sometimes. The rest of the time it errors out at the setdatabaselogon command with Load Report Failed. Does anyone have any idea what could cause this?
All Replies
-
Saturday, May 29, 2010 9:13 AMHi. I haven't met this problem before. But it seems it doesn't always happen. Is it temporal? Maybe there is something to do with the network connection situation?
Computing Network Technique information -
Tuesday, June 01, 2010 11:27 AM
Hi,
Can you post the code, to understand exactly what's the problem.
Regards Ayman Zaza -
Tuesday, September 21, 2010 5:45 PM
Hi. I haven't met this problem before. But it seems it doesn't always happen. Is it temporal? Maybe there is something to do with the network connection situation?
Computing Network Technique information
It is the way! But I still wonder why, Any related guide to learn? Could you explain it more clearly?
It's important you guys post the code to try to help you.by the way, is your database server in another machine? O your database is locally?
regards
_________________ waraltca. -
Wednesday, September 22, 2010 9:51 AM
Hi use this code bind data to reportusing CrystalDecisions.Web; using CrystalDecisions.CrystalReports.Engine; using CrystalDecisions.Shared; SqlConnection con = new SqlConnection(); con.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; SqlCommand cmd = new SqlCommand(); con.Open(); cmd.Connection = con; cmd.CommandType = CommandType.StoredProcedure; cmd.CommandText = "sp_name"; SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); da.Fill(ds, "HarvestInfo"); ReportDocument _rptDocument = new ReportDocument(); _rptDocument.Load(Server.MapPath("ReportName.rpt")); _rptDocument.SetDataSource(ds.Tables["HarvestInfo"]); ReportViewer1.ReportSource = _rptDocument; ReportViewer1.DataBind(); this. ReportViewer1.Visible = true; cmd.Dispose(); con.Close(); ds.Dispose();
Regards Ayman Zaza -
Saturday, November 13, 2010 1:56 AMCode you gave worked for me. Thank you very much.
Kudret Çayıroğlu -
Friday, December 24, 2010 11:31 PM
Yes, I worked me.. Thanks
----------------------------------------------------------------
-
Sunday, December 26, 2010 5:11 PMI feel your report is not able to connect to the database in a timely manner, use veryfy command to check the connection at runtime. also try to increase the time out period
Please mark the replies as answers if they help. Kumar -
Wednesday, January 26, 2011 1:23 AMWaralta, Donahue Larsen is just a seo spammer who pretend to reply in order to hide spam in quotes. Please edit your post to remove the hidden SEO link in the word "guide" inside "any related guide to learn".
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP