2014-07-12 2 views
1

StimulSoft Report 2010을 사용하여 일부 보고서를 표시하고 인쇄하는 MS Framework 4.0의 C# 프로그램이 있습니다.
내 프로그램 작업 꽤 내 컴퓨터에서 오른쪽하지만 난 원격 가상 컴퓨터에서 실행하려고 할 때이 문제가 저에게이 오류 제공 : 난 그냥이 부분에 문제가원격 가상 컴퓨터에서 Stimulreport 사용

Application: MyApplication.exe 
Framework Version: v4.0.30319 
Description: The process was terminated due to an unhandled exception. 
Exception Info: System.IO.DirectoryNotFoundException 
Stack: 
at Stimulsoft.Report.StiReport.Load(System.String) 
at Tavanmand.StoneCut.ManagementApplication.SlabForm.PrintForm(System.Object, System.Windows.RoutedEventArgs) 
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) 
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) 
at System.Windows.Controls.Button.OnClick() 
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs) 
at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object) 
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) 
at System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent) 
at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object) 
at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) 
at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) 
at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs) 
at System.Windows.Input.InputManager.ProcessStagingArea() 
at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport) 
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32) 
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef) 
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) 
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef) 
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object) 
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32) 
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate) 
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32) 
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr) 
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) 
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef) 
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame) 
at System.Windows.Application.RunInternal(System.Windows.Window) 
at System.Windows.Application.Run() 
at Tavanmand.StoneCut.ManagementApplication.App.Main() 

을 내 프로그램. 다른 부분은 잘 작동합니다.
myApplication.exe 근처에있는 모든 stimulreport dll 파일을 추가했으며 심지어 설치하려면 StimulSoft Report 2010하지만 여전히 작동하지 않습니다.

지금 어떻게해야합니까?

+1

보고서 추적 파일을로드하려고하면 스택 추적의 마지막 호출이됩니다. (MRT). 원격 컴퓨터에 올바른 파일과 경로를 설정 했습니까? – Steve

+0

@ 스티브 : 그래, 고마워. 사실 내 .mrt 파일의 폴더를 복사하는 것을 잊었습니다. 내 문제가 해결되었습니다. 하지만 나는 여전히 또 다른 질문이 있습니다 : myApplication.exe 근처에 stimulreport 또는 dll 파일의 복사본을 설치해야합니까? – aisa

답변

1

스택 추적의 마지막 호출은 보고서 파일을로드하려고 할 때입니다. (MRT).

이렇게하면 보고서 파일을 검색하고, 따라서 당신이 절대적으로 네 번째 코멘트의 예외를

Directory Not Found 

어디서 올바르게 설치 폴더가없는 명확한 기호를 보인다.
프로젝트에 필요한 DLL을 재배포해야합니다. 프로그래밍 매뉴얼을 보면 어셈블리의 재배포 부분을 찾을 수 있습니다. 그들은 당신의 프로젝트 종류에 따라 바뀝니다. (21.12 Redistributable files in Reports.Net)

Stimulsoft 파일은 응용 프로그램을 설치 한 폴더에 간단히 복사 할 수 있습니다. 물론 대상 컴퓨터의 GAC에 추가 할 수도 있습니다. 그러나 응용 프로그램의 같은 폴더에 복사하는 것이 더 간단합니다.

관련 문제