| | |
CrystalReports.Engine: Load report failed
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2006
Posts: 24
Reputation:
Solved Threads: 0
Hi All
I got an error while working with Crystal reports
I have added a crystal report and set a command over there to get data.
I have added a crystalreportviewer named CRV to my web form and the code given as
the error was
Help me
Thanks in advance...
I got an error while working with Crystal reports
I have added a crystal report and set a command over there to get data.
I have added a crystalreportviewer named CRV to my web form and the code given as
ASP.NET Syntax (Toggle Plain Text)
using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; namespace Cryppp { /// <summary> /// Summary description for WebForm1. /// </summary> public class WebForm1 : System.Web.UI.Page { protected CrystalDecisions.Web.CrystalReportViewer CrystalReportViewer1; protected CrystalDecisions.Web.CrystalReportViewer CRV; Sample sr=new Sample(); private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here sr.SetDatabaseLogon("sa", "", "as34", "pubs"); sr.Load(); CRV.ReportSource=sr; DataBind(); } #region Web Form Designer generated code override protected void OnInit(EventArgs e) { // // CODEGEN: This call is required by the ASP.NET Web Form Designer. // InitializeComponent(); base.OnInit(e); } /// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); } #endregion } }
the error was
ASP.NET Syntax (Toggle Plain Text)
Server Error in '/Cryppp' Application. -------------------------------------------------------------------------------- Load report failed. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: CrystalDecisions.CrystalReports.Engine.LoadSaveReportException: Load report failed. Source Error: Line 23: { Line 24: // Put user code to initialize the page here Line 25: sr.SetDatabaseLogon("sa", "", "as34", "pubs"); Line 26: sr.Load(); Line 27: CRV.ReportSource=sr; Source File: c:\inetpub\wwwroot\cryppp\webform1.aspx.cs Line: 25 Stack Trace: [LoadSaveReportException: Load report failed.] .F(String , EngineExceptionErrorID ) .B(String , Int32 ) CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob) CrystalDecisions.CrystalReports.Engine.ReportDocument.'() CrystalDecisions.CrystalReports.Engine.ReportDocument.get_Database() CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDatabaseLogon(String user, String password, String server, String database) Cryppp.WebForm1.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\cryppp\webform1.aspx.cs:25 System.Web.UI.Control.OnLoad(EventArgs e) System.Web.UI.Control.LoadRecursive() System.Web.UI.Page.ProcessRequestMain() -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
Thanks in advance...
Sravan...
![]() |
Similar Threads
- Problem with Crystal Report in ASP.NET (ASP.NET)
- ASP.NET Crystal Report ODBC MySQL (ASP.NET)
- Refreshing a crystal report with parameters (VB.NET)
- crystal report (VB.NET)
- problem passing parameter to crystal from .net (VB.NET)
- Error While Declaring Crytal Report Object (VB.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: serial port via ASP.NET 2005
- Next Thread: This ASP.NET page is not working...!!! SOS
| Thread Tools | Search this Thread |
.net 2.0 ajax alltypeofvideos appliances application asp asp.net bc30451 beginner box browser button c# cac checkbox class commonfunctions control countryselector dataaccesslayer database datagridview datagridviewcheckbox datalist deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose feedback fileuploader fill findcontrol flash form formatdecimal formview gridview gudi iis javascript listbox login microsoft mouse mssql news novell numerical opera panelmasterpagebuttoncontrols parent problem radio redirect registration relationaldatabases reportemail save schoolproject search security select sessionvariables silverlight smartcard smoobjects software sql sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos vista visualstudio vs2008 web webapplications webdevelopemnt webdevelopment webprogramming webservice wizard xsl youareanotmemberofthedebuggerusers





