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
User contributions licensed under CC BY-SA 3.0