Reportdocument.load causes "System.AccessViolationException: Attempted to read or write protected memory" error.
The error is not consistent. Sometimes a report will print. Sometimes a report will error.
I am at a loss as to what to try.
I have uninstall the app, reinstalled the app, uninstall and reinstalled .NET frameworks, Visual C++ runtime, etc.,
reworked the code to try to capture the error. Nothing helps. Application crashes with Unhandled exception.
Attempted to read or write to protected memory.
Has anyone been able to resolve this issue?