I am having this error after using ReportViewer. Upon exit it has this error. Don't know what is causing this. I am using C#.
This is a reported Microsoft bug. There is a workaround for it - to call reportViewer.LocalReport.ReleaseSandboxAppDomain()
method before closing the parent form.
Example:
private void frmMyForm_FormClosing(object sender, FormClosingEventArgs e)
{
reportViewer1.LocalReport.ReleaseSandboxAppDomain();
}
Reference: Weird behaviour when I open a reportviewer in WPF
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With