RTC-Error with a Report

stony
Member Posts: 122
Hello,
I built a report, which prints labels. It can be printed from a sales order for all involved sales line labels. The number of individual labels dependent from the input set in the respective sales line. This report contains some embedded images (14 images with a total size of approximately 3.3MB). If I select a sales order which given only three labels, everything works perfektly. As soon as I Selct a sales order with several lines, RTC crashes. I get the following message on the server:
Ereignistyp: Fehler
Ereignisquelle: MicrosoftDynamicsNAVServer
Ereigniskategorie: Keine
Ereigniskennung: 0
Datum: 24.05.2012
Zeit: 10:57:02
Benutzer: Nicht zutreffend
Computer: ZSENS17
Beschreibung:
Service: MicrosoftDynamicsNavServer$TesTXXX
User: testXXX-GMBH\abc
Type: System.Runtime.InteropServices.ExternalException
ErrorCode: -2147467259
Message: Allgemeiner Fehler in GDI+.
StackTrace:
bei Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args)
bei Microsoft.Dynamics.Nav.Service.NSField.ActionField(NavConnection con)
bei Microsoft.Dynamics.Nav.Service.NSField.Action(NavConnection connection)
bei Microsoft.Dynamics.Nav.Service.NSService.<>c__DisplayClass21.<ActionField>b__20(Connection connection)
bei Microsoft.Dynamics.Nav.Service.NSService.ExecuteOperation[T](String operationName, ServiceOperation`1 operation, Connection connection, Boolean revertLanguageChanges, WindowsIdentity impersonationIdentity)
Source: Microsoft.Dynamics.Nav.Ncl
Type: System.Reflection.TargetInvocationException
Message: Ein Aufrufziel hat einen Ausnahmefehler verursacht.
StackTrace:
bei System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
bei System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args)
Source: mscorlib
Type: System.Runtime.InteropServices.ExternalException
ErrorCode: -2147467259
Message: Allgemeiner Fehler in GDI+.
StackTrace:
bei Microsoft.Dynamics.Nav.Service.NSClientCallback.ReportPageReady(ReportRequest reportRequest)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.SendDataSetPieceToTargetDevice(Boolean isFinalDataSetPiece)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.ExecuteReport(Boolean displayResult)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.RunReportInternal(NavRecord record, Boolean displayResult)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean runReportModal, NavRecord record, IList`1 reportTextualFilters)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Int32 reportId, Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean isRunningAsModal, NavRecord record, IList`1 textualFilters)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.Run(Int32 reportId, Boolean requestWindow, Boolean systemPrinter, NavRecord record)
bei Microsoft.Dynamics.Nav.BusinessApplication.Page50032.Control1000000001_OnAction()
Source: Microsoft.Dynamics.Nav.Service
Type: System.Runtime.InteropServices.ExternalException
ErrorCode: -2147467259
Message: Allgemeiner Fehler in GDI+.
StackTrace:
bei System.Drawing.Imaging.Metafile..ctor(Stream stream)
bei Microsoft.Dynamics.Nav.Client.ReportRenderer.ReportPrintPage(Object sender, PrintPageEventArgs printPageEventArguments)
bei System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)
bei System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
bei System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
bei System.Drawing.Printing.PrintController.Print(PrintDocument document)
bei System.Drawing.Printing.PrintDocument.Print()
bei Microsoft.Dynamics.Nav.Client.ReportRenderer.PrintReport(Boolean showPrintStatus)
bei Microsoft.Dynamics.Nav.Client.ServiceClientCallback.ReportPageReadyWinFormsPrintDirectly(ReportRequest reportRequest, ReportExecutionItem reportExecutionItem, Boolean isFirstPage)
bei Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass19.<ReportPageReady>b__18()
bei Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass1.<RunClientRequest>b__0()
bei Microsoft.Dynamics.Nav.Client.ServerInvocationManager.WaitForServerResponse(IAsyncResult asyncResult, ThreadCallbackContext threadEventContext)
Source: System.Drawing
The preview function. Currently I have the following version 6.00.32964 in use.
Could this be a problem with the embedded images?
thanks
stony
I built a report, which prints labels. It can be printed from a sales order for all involved sales line labels. The number of individual labels dependent from the input set in the respective sales line. This report contains some embedded images (14 images with a total size of approximately 3.3MB). If I select a sales order which given only three labels, everything works perfektly. As soon as I Selct a sales order with several lines, RTC crashes. I get the following message on the server:
Ereignistyp: Fehler
Ereignisquelle: MicrosoftDynamicsNAVServer
Ereigniskategorie: Keine
Ereigniskennung: 0
Datum: 24.05.2012
Zeit: 10:57:02
Benutzer: Nicht zutreffend
Computer: ZSENS17
Beschreibung:
Service: MicrosoftDynamicsNavServer$TesTXXX
User: testXXX-GMBH\abc
Type: System.Runtime.InteropServices.ExternalException
ErrorCode: -2147467259
Message: Allgemeiner Fehler in GDI+.
StackTrace:
bei Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args)
bei Microsoft.Dynamics.Nav.Service.NSField.ActionField(NavConnection con)
bei Microsoft.Dynamics.Nav.Service.NSField.Action(NavConnection connection)
bei Microsoft.Dynamics.Nav.Service.NSService.<>c__DisplayClass21.<ActionField>b__20(Connection connection)
bei Microsoft.Dynamics.Nav.Service.NSService.ExecuteOperation[T](String operationName, ServiceOperation`1 operation, Connection connection, Boolean revertLanguageChanges, WindowsIdentity impersonationIdentity)
Source: Microsoft.Dynamics.Nav.Ncl
Type: System.Reflection.TargetInvocationException
Message: Ein Aufrufziel hat einen Ausnahmefehler verursacht.
StackTrace:
bei System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
bei System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
bei System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
bei Microsoft.Dynamics.Nav.Runtime.NavApplicationMethod.InvokeMethod(Object obj, String methodName, Object[] args)
Source: mscorlib
Type: System.Runtime.InteropServices.ExternalException
ErrorCode: -2147467259
Message: Allgemeiner Fehler in GDI+.
StackTrace:
bei Microsoft.Dynamics.Nav.Service.NSClientCallback.ReportPageReady(ReportRequest reportRequest)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.SendDataSetPieceToTargetDevice(Boolean isFinalDataSetPiece)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.ExecuteReport(Boolean displayResult)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.RunReportInternal(NavRecord record, Boolean displayResult)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean runReportModal, NavRecord record, IList`1 reportTextualFilters)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.RunReport(Int32 reportId, Nullable`1 requestWindow, Nullable`1 systemPrinter, Boolean isRunningAsModal, NavRecord record, IList`1 textualFilters)
bei Microsoft.Dynamics.Nav.Runtime.NavReport.Run(Int32 reportId, Boolean requestWindow, Boolean systemPrinter, NavRecord record)
bei Microsoft.Dynamics.Nav.BusinessApplication.Page50032.Control1000000001_OnAction()
Source: Microsoft.Dynamics.Nav.Service
Type: System.Runtime.InteropServices.ExternalException
ErrorCode: -2147467259
Message: Allgemeiner Fehler in GDI+.
StackTrace:
bei System.Drawing.Imaging.Metafile..ctor(Stream stream)
bei Microsoft.Dynamics.Nav.Client.ReportRenderer.ReportPrintPage(Object sender, PrintPageEventArgs printPageEventArguments)
bei System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)
bei System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
bei System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
bei System.Drawing.Printing.PrintController.Print(PrintDocument document)
bei System.Drawing.Printing.PrintDocument.Print()
bei Microsoft.Dynamics.Nav.Client.ReportRenderer.PrintReport(Boolean showPrintStatus)
bei Microsoft.Dynamics.Nav.Client.ServiceClientCallback.ReportPageReadyWinFormsPrintDirectly(ReportRequest reportRequest, ReportExecutionItem reportExecutionItem, Boolean isFirstPage)
bei Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass19.<ReportPageReady>b__18()
bei Microsoft.Dynamics.Nav.Client.ServiceClientCallback.<>c__DisplayClass1.<RunClientRequest>b__0()
bei Microsoft.Dynamics.Nav.Client.ServerInvocationManager.WaitForServerResponse(IAsyncResult asyncResult, ThreadCallbackContext threadEventContext)
Source: System.Drawing
The preview function. Currently I have the following version 6.00.32964 in use.
Could this be a problem with the embedded images?
thanks
stony
0
Comments
-
Your error message says: Message: Allgemeiner Fehler in GDI+.
GDI+ is the drawing engine of .net winforms, so i guess the porbliem lies in the report renderer, we can only assume where the problem lies.
Does the defined mime-type match with the actual type of the images?0 -
I have recreated the report and now it works.
thanks
stony0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions