Microsoft.ReportingServices.ReportViewerControl.Winform Throwing FatalExecutionEngineError

Mark Smith 10 Reputation points
2023-11-06T18:24:07.6366667+00:00

I have a Visual Studio project using the NuGet package Microsoft.ReportingServices.ReportViewerControl.Winform

that is throwing exceptions. The project is using .Net Framework 4.8. The report is reading one SQL table.

I've sent multiple messages to the package owner using NuGet, and have not received a response, I'm therefore trying this forum to get help.

The exception is thrown anytime I have an object in the header or footer of a report, and move off the first page of the report. For example, if I add a page number to the report footer, the report viewer throws an exception. When there is no object in the header or footer the viewer works fine.

The full details of the exception is:

Managed Debugging Assistant 'FatalExecutionEngineError' 
  Message=Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime has encountered a fatal error. The address of the error was at 0x7aa7ab2f, on thread 0x8184. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.'

Does anyone know how to solve this issue? Or how to contact the NuGet package owner?

Thank you.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,055 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,914 questions
{count} vote

1 answer

Sort by: Most helpful
  1. AniyaTang-MSFT 12,441 Reputation points Microsoft Vendor
    2023-11-07T01:49:04.3066667+00:00

    Hi @Mark Smith

    The fatalExecutionEngineError managed debugging assistant (MDA) is activated when a fatal error in the common language runtime (CLR) has been detected. The process will be terminated. This is most often caused by data corruption, which can be caused by a number of problems, such as calls to malformed platform invoke functions and passing invalid data to the CLR. For more details, you can refer to this document: fatalExecutionEngineError MDA.

    For report viewer control integration and NuGet packages you can check out these links:

    Integrate Reporting Services Using the Report Viewer Controls - Get Started,

    Microsoft.ReportingServices.ReportViewerControl.Winforms: https://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.WinForms/.

    If the answer is helpful, please click Accept Answer and Up-Vote for the same. If you have any questions, please feel free to let me know.

    Best regards,

    Aniya


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.