Error while unloading AppDomain. (Exception from HRESULT: 0x80131015)
来源:互联网 发布:什么是网络品牌 编辑:程序博客网 时间:2024/05/29 14:29
在使用PRISM时, 使用了Windows Form Host 加载了Report View11控件, 窗体关闭后, 在退出PRISM程序时, 系统抛出异常
Error while unloading AppDomain. (Exception from HRESULT: 0x80131015)
这是微软已知的一个BUG, 详情参见
http://connect.microsoft.com/VisualStudio/feedback/details/522208/wpf-app-with-reportviewer-gets-error-while-unloading-appdomain-exception-on-termination
解决方案相当简单:
在关闭ReportViewer调用的窗体之前执行 reportViewer.LocalReport.ReleaseSandboxAppDomain()
事件即可. 如:
private void frmMyForm_FormClosing(object sender, FormClosingEventArgs e){ reportViewer1.LocalReport.ReleaseSandboxAppDomain();}
这样就不会有问题了.
0 0
- Error while unloading AppDomain. (Exception from HRESULT: 0x80131015)
- WinForms.ReportViewer{"Error while unloading appdomain. (Exception from HRESULT: 0x80131015)"}
- 卸载 Appdomain 时出错。 (异常来自 HRESULT:0x80131015)
- vs2010 rdlc .net4.0 卸载 Appdomain 时出错。 (异常来自 HRESULT:0x80131015) 解决办法
- Exception from HRESULT: 0x800A03EC
- Exception from HRESULT: 0x80131904
- Exception from HRESULT: 0x800A03EC
- Exception from HRESULT: 0x80041FE2
- 找不到指定的模块(Exception from HRESULT:0X8007007E)
- 求助Exception from HRESULT: 0x800A03EC的错误原因!!!
- 关于在Excel应用中的Exception from HRESULT:0x800A03EC
- ASP.NET - Exception from HRESULT: 0x80070057 (E_INVALIDARG)
- The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
- Exception from HRESULT: 0x80004004 (E_ABORT) 的错误
- ASP.NET - Exception from HRESULT: 0x80070057 (E_INVALIDARG)
- ASP.NET - Exception from HRESULT: 0x80070057 (E_INVALIDARG)
- System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800AC472
- WPF 后台Render线程崩溃, Exception from HRESULT: 0x88980406
- NuttX 编译系统
- VC6.0中调用MATLAB编译生成的DLL2
- Myeclipse启动运行速度的优化
- BP网络
- git submodule的使用
- Error while unloading AppDomain. (Exception from HRESULT: 0x80131015)
- java虚拟机中的泛型
- 实现android之文字左右滚动
- android:targetSdkVersion
- 与迷茫为友的成长-转贺利坚老师演讲PPT
- bat批处理
- cocos2d::Vector<T>
- 第二章作业(补)
- 你给我的感悟,我读懂了文字