Error unloading AppDomain. (Exception from HRESULT: 0x80131015)

I get this error after using ReportViewer. After exiting, she has this error. I do not know what causes this. I am using C #.

+4
source share
1 answer

This reports a Microsoft error. The workaround for this is to call the reportViewer.LocalReport.ReleaseSandboxAppDomain() method before closing the parent form.

Example:

 private void frmMyForm_FormClosing(object sender, FormClosingEventArgs e) { reportViewer1.LocalReport.ReleaseSandboxAppDomain(); } 

Link: Strange behavior when opening ReportViewer in WPF

+16
source

Source: https://habr.com/ru/post/1436971/


All Articles