本地报告处理期间出错 [英] Error during local report processing

查看:431
本文介绍了本地报告处理期间出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在visual studio 2012中开发了一个wpf应用程序。当我在visual studio中运行时,该应用程序运行正常。在我的应用程序中,我使用了RDLC报告。

当我在visual studio中运行应用程序报告得到结果时,我就为应用程序创建了一个设置文件。

然后应用程序安装在我的机器上,我执行打印操作。它会发生错误。以下是例外情况:





本地报告处理过程中出错。

at Microsoft.Reporting .WinForms.LocalReport.EnsureExecutionSession()

at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)

at Restaurant.Classes.ReportPrintClass..ctor( String _DataSourceName,DataTable _DataSourceValue,String _ReportPath,ReportParameter [] arrParams,Double pagewidth,Double pageheight,Double leftmargin,Double rightmargin,Double topmargin,Double bottommargin)

at Restaurant.OrderDetailInCashierWindow.btnPrint_Click(Object sender, RoutedEventArgs e)

在System.Windows.EventRoute.InvokeHandlersImpl(对象源,RoutedEventArgs args,Boolean reRaised)

在System.Windows.UIElement.RaiseEventImpl(DependencyObject sender,RoutedEventArgs) args)

在System.Windows.Controls.Button.OnClick()

在System.Windows.Controls.Primitives。在System.Windows.RoutedEventArgs.InvokeHandler(委托处理程序,对象目标)上的
.Blog.Windows.EventRoute.InvokeHandlersImpl(对象源,
)处于
的System.Windows.EventRoute.InvokeHandlersImpl(对象源, RoutedEventArgs args,Boolean reRaised)

在System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender,RoutedEventArgs args,RoutedEvent newEvent)

在System.Windows.RoutedEventArgs.InvokeHandler(Delegate)处理程序,对象目标)

在System.Windows.EventRoute.InvokeHandlersImpl(对象源,RoutedEventArgs args,Boolean reRaised)

在System.Windows.UIElement.RaiseEventImpl(DependencyObject sender) ,RoutedEventArgs args)

在System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)

在System.Windows.Input.InputManager.ProcessStagingArea()
$ b System.Windows.Interop.Hwnd上的System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
MouseInputProvider.ReportInput(IntPtr hwnd,InputMode mode,Int32 timestamp,RawMouseActions actions,Int32 x,Int32 y,Int32 wheel)

在System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd,WindowMessage msg, System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd,Int32 msg,IntPtr wParam,IntPtr lParam,Boolean&handling)


在MS.Win32.HwndWrapper.WndProc(IntPtr hwnd,Int32 msg,IntPtr wParam,IntPtr lParam,Boolean&handling)

at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback,Object args,Int32 numArgs)

at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source,Delegate method,Object args) ,Int32 numArgs,Delegate catchHandler)

在System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority prio) rity,TimeSpan timeout,Delegate方法,Object args,Int32 numArgs)

at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd,Int32 msg,IntPtr wParam,IntPtr lParam)

在MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&msg)

在System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame框架)

在System.Windows.Window。 ShowHelper(Object booleanBox)

at System.Windows.Window.ShowDialog()

在Restaurant.CashierOrdersListUserControl.btnShowDetails_Click(Object sender,RoutedEventArgs e)
$ b System.Windows.EventRoute.InvokeHandlersImpl上的$ b(Object source,RoutedEventArgs args,Boolean reRaised)

at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender,RoutedEventArgs args)

在System.Windows.Controls.Button.OnClick()

at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)

在System.Windows。 RoutedEve ntArgs.InvokeHandler(委托处理程序,对象目标)

在System.Windows.EventRoute.InvokeHandlersImpl(对象源,RoutedEventArgs args,布尔值reRaised)

在System.Windows.UIElement .ReRaiseEventAs(DependencyObject sender,RoutedEventArgs args,RoutedEvent newEvent)

在System.Windows.RoutedEventArgs.InvokeHandler(委托处理程序,对象目标)

在System.Windows.EventRoute。 InvokeHandlersImpl(Object source,RoutedEventArgs args,Boolean reRaised)

在System.Windows.UIElement.RaiseEventImpl(DependencyObject sender,RoutedEventArgs args)

在System.Windows.UIElement.RaiseTrustedEvent (RoutedEventArgs args)

在System.Windows.Input.InputManager.ProcessStagingArea()

在System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
System.Windows.Interop.HwndMouseInputProvider.ReportInput上的
(IntPtr hwnd,InputMode模式,Int32时间戳,RawMouseActions行为离子,Int32 x,Int32 y,Int32轮)

在System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd,WindowMessage msg,IntPtr wParam,IntPtr lParam,Boolean&handling)

at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd,Int32 msg,IntPtr wParam,IntPtr lParam,Boolean&handling)

at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd,Int32 msg,IntPtr wParam,IntPtr lParam,Boolean&handling)

at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)

at System.Windows.Threading.ExceptionWrapper.InternalRealCall(委托回调,对象args,Int32 numArgs)

在MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(对象源,委托方法,对象args,Int32 numArgs,Delegate catchHandler)

在System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority,TimeSpan timeout,Delegate方法,Object args,Int32 numArgs)

at MS.Win32.H wndSubclass.SubclassWndProc(IntPtr hwnd,Int32 msg,IntPtr wParam,IntPtr lParam)

at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG&msg)

at System.Windows.Threading .Dispatcher.PushFrameImpl(DispatcherFrame框架)

在System.Windows.Window.ShowHelper(对象booleanBox)

在System.Windows.Window.ShowDialog()
在Restaurant.LoginWindow.CheckUser(字符串userName,字符串密码)


System.ApplicationException:尚未指定报告'Report_Receipt'的报告定义---> System.IO.DirectoryNotFoundException:找不到路径'C:\ Users \ Roopasoft \Desktop\ReportSrc \Report_Receipt.rdlc'的一部分。

在System.IO .__错误.WinIOError(Int32 errorCode,String maybeFullPath)

at System.IO.FileStream.Init(String path,FileMode mode,FileAccess access,Int32 rights,Boolean useRights,FileShare share,Int32 bufferSize,FileOptions options, SECURITY_ATTRIBUTES secAttrs,String msgPath,Boolean bFromProxy,Boolean useLongPath,Boolean checkHost)

at System.IO.FileStream..ctor(String path,FileMode mode,FileAccess access,FileShare share,Int32 bufferSize,FileOptions options ,String msgPath,Boolean bFromProxy)

在System.IO.FileStream..ctor(字符串路径,FileMode模式,FileAccess访问,FileShare共享)

在Microsoft.ReportingServices。 StandalonePreviewStore.GetReportDefinition(PreviewItemContext itemContext)

---内部异常堆栈跟踪结束--- .ReportingServices.StandalonePreviewStore.GetReportDefinition(PreviewItemContext itemContext)

at Microsoft.Reporting.LocalService.GetCompiledReport(PreviewItemContext itemContext,Boolean rebuild,ControlSnapshot&snapshot)

at Microsoft.Reporting.LocalService.CompileReport()

at Microsoft.Reporting.WinForms.LocalReport.EnsureExecutionSession()





实际上我在安装过程中在Prerequesties中添加了ReportViewer。

I was developed an wpf application in visual studio 2012. The application is working perfectly when i am running in visual studio . In my application i used the RDLC reports.
When i was running the application in visual studio reports are getting the results, then i was created a setup file for the application.
Then the application is installed in my machine and i performs the print operation. It will thoughs the error. Here is the exception:
"

An error occurred during local report processing.
at Microsoft.Reporting.WinForms.LocalReport.EnsureExecutionSession()
at Microsoft.Reporting.WinForms.LocalReport.SetParameters(IEnumerable`1 parameters)
at Restaurant.Classes.ReportPrintClass..ctor(String _DataSourceName, DataTable _DataSourceValue, String _ReportPath, ReportParameter[] arrParams, Double pagewidth, Double pageheight, Double leftmargin, Double rightmargin, Double topmargin, Double bottommargin)
at Restaurant.OrderDetailInCashierWindow.btnPrint_Click(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.ShowDialog()
at Restaurant.CashierOrdersListUserControl.btnShowDetails_Click(Object sender, RoutedEventArgs e)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.ShowDialog()
at Restaurant.LoginWindow.CheckUser(String userName, String password)
System.ApplicationException: The report definition for report 'Report_Receipt' has not been specified ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Roopasoft\Desktop\ReportSrc\Report_Receipt.rdlc'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Microsoft.ReportingServices.StandalonePreviewStore.GetReportDefinition(PreviewItemContext itemContext)
--- End of inner exception stack trace ---
at Microsoft.ReportingServices.StandalonePreviewStore.GetReportDefinition(PreviewItemContext itemContext)
at Microsoft.Reporting.LocalService.GetCompiledReport(PreviewItemContext itemContext, Boolean rebuild, ControlSnapshot& snapshot)
at Microsoft.Reporting.LocalService.CompileReport()
at Microsoft.Reporting.WinForms.LocalReport.EnsureExecutionSession()
"

Actually i was added the ReportViewer in Prerequesties in the installation process.

推荐答案

System.ApplicationException:报告'Report_Receipt'的报告定义尚未指定---> System.IO.DirectoryNotFoundException:找不到路径的一部分'C:\Users\Roopasoft\Desktop\ReportSrc\Report_Receipt.rdlc'。
System.ApplicationException: The report definition for report 'Report_Receipt' has not been specified ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Roopasoft\Desktop\ReportSrc\Report_Receipt.rdlc'.


我得到了这个错误也是如此。就我而言,我正在将我的解决方案从VS2010升级到VS2015。一切都在我的电脑上运行良好,但发布网站,有堆栈跟踪。



我的解决方案;

服务器没有用于SQL Server 2014的Microsoft系统CLR类型也不是

Microsoft ReportViewer 2015运行时



从Microsoft站点获取的内容和所有内容都有效魅力。
I got this error as well. In my case, I was upgrading my solution from VS2010 to VS2015. Everything worked good on my Computer but publishing the site, was having ths stack trace.

My solution;
the servers didn't had "Microsoft System CLR Types for SQL Server 2014" nor
"Microsoft ReportViewer 2015 Runtime"

Got those from Microsoft site and everything worked like a charm.


这篇关于本地报告处理期间出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆