Load report failed in Crystal Report with winform Vs.net 2008 W7 x64

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
hi, i am a new user and have this problem
i can find the answer this is the error, when run a winform with CrystalreportViewer in VB
CrystalDecisions.Shared.CrystalReportsException was unhandled<br/>
Message="Load report failed."<br/>
Source="CrystalDecisions.CrystalReports.Engine"<br/>
StackTrace:<br/>
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()<br/>
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)<br/>
at CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)<br/>
at CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()<br/>
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)<br/>
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet)<br/>
at CDE.FrmRptDiasClase.FrmRptDiasClase_Load(Object sender, EventArgs e) in C:SistemasControlDiasClaseCDECDEFrmRptDiasClase.vb:line 11<br/>
at System.Windows.Forms.Form.OnLoad(EventArgs e)<br/>
at System.Windows.Forms.Form.OnCreateControl()<br/>
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)<br/>
at System.Windows.Forms.Control.CreateControl()<br/>
at System.Windows.Forms.Control.WmShowWindow(Message& m)<br/>
at System.Windows.Forms.Control.WndProc(Message& m)<br/>
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)<br/>
at System.Windows.Forms.ContainerControl.WndProc(Message& m)<br/>
at System.Windows.Forms.Form.WmShowWindow(Message& m)<br/>
at System.Windows.Forms.Form.WndProc(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)<br/>
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)<br/>
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)<br/>
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)<br/>
at System.Windows.Forms.Control.set_Visible(Boolean value)<br/>
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)<br/>
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)<br/>
at System.Windows.Forms.Application.RunDialog(Form form)<br/>
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)<br/>
at System.Windows.Forms.Form.ShowDialog()<br/>
at CDE.FrmReportes.Button1_Click(Object sender, EventArgs e) in C:SistemasControlDiasClaseCDECDEFrmReportes.vb:line 4<br/>
at System.Windows.Forms.Control.OnClick(EventArgs e)<br/>
at System.Windows.Forms.Button.OnClick(EventArgs e)<br/>
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)<br/>
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)<br/>
at System.Windows.Forms.Control.WndProc(Message& m)<br/>
at System.Windows.Forms.ButtonBase.WndProc(Message& m)<br/>
at System.Windows.Forms.Button.WndProc(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)<br/>
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)<br/>
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)<br/>
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)<br/>
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)<br/>
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)<br/>
at System.Windows.Forms.Application.RunDialog(Form form)<br/>
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)<br/>
at System.Windows.Forms.Form.ShowDialog()<br/>
at CDE.FrmPrincipal.ToolStripButton2_Click(Object sender, EventArgs e) in C:SistemasControlDiasClaseCDECDEFrmPrincipal.vb:line 23<br/>
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)<br/>
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)<br/>
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)<br/>
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)<br/>
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)<br/>
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)<br/>
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)<br/>
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)<br/>
at System.Windows.Forms.Control.WndProc(Message& m)<br/>
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)<br/>
at System.Windows.Forms.ToolStrip.WndProc(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)<br/>
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)<br/>
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)<br/>
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)<br/>
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)<br/>
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)<br/>
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)<br/>
at System.Windows.Forms.Application.RunDialog(Form form)<br/>
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)<br/>
at System.Windows.Forms.Form.ShowDialog()<br/>
at CDE.FrmLogin.BtnEntrar_Click(Object sender, EventArgs e) in C:SistemasControlDiasClaseCDECDEFrmLogin.vb:line 22<br/>
at System.Windows.Forms.Control.OnClick(EventArgs e)<br/>
at System.Windows.Forms.Button.OnClick(EventArgs e)<br/>
at System.Windows.Forms.Button.PerformClick()<br/>
at System.Windows.Forms.Form.ProcessDialogKey(Keys keyData)<br/>
at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)<br/>
at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)<br/>
at System.Windows.Forms.Control.PreProcessMessage(Message& msg)<br/>
at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)<br/>
at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)<br/>
at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)<br/>
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)<br/>
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)<br/>
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)<br/>
at System.Windows.Forms.Application.Run(ApplicationContext context)<br/>
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()<br/>
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()<br/>
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)<br/>
at CDE.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81<br/>
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)<br/>
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)<br/>
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()<br/>
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)<br/>
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)<br/>
at System.Threading.ThreadHelper.ThreadStart()<br/>
InnerException: System.NullReferenceException<br/>
Message="Object reference not set to an instance of an object."<br/>
Source="CrystalDecisions.ReportAppServer.ClientDoc"<br/>
StackTrace:<br/>
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)<br/>
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)<br/>
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()<br/>
InnerException: <br/>
<br/>

i using :
Microsoft Visual Studio 2008<br/>
Version 9.0.30729.1 SP<br/>
Microsoft .NET Framework<br/>
Version 3.5 SP1<br/>
<br/>
Installed Edition: Professional<br/>
<br/>
Microsoft Visual Basic 2008 91990-270-9676275-60655<br/>
Microsoft Visual Basic 2008<br/>
<br/>
<br/>
Crystal Reports AAJ6G-H0MSA4K-680007E<br/>
Crystal Reports Basic for Visual Studio 2008<br/>
<br/>
SQL Server Analysis Services <br/>
Microsoft SQL Server Analysis Services Designer <br/>
Version 10.0.1600.22<br/>
<br/>
<br/>
SQL Server Integration Services <br/>
Microsoft SQL Server Integration Services Designer<br/>
Version 10.0.1600.22 ((SQL_PreRelease).080709-1414 )<br/>
<br/>
<br/>
SQL Server Reporting Services <br/>
Microsoft SQL Server Reporting Services Designers <br/>
Version 10.0.1600.22



View the full article
 
Back
Top