博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
WebForms.LocalReport.SetParameters hangs
阅读量:5164 次
发布时间:2019-06-13

本文共 1189 字,大约阅读时间需要 3 分钟。

As per our dump analysis, we found that the page is running / calling one of the STA COM component. So the thread running the page (thread 16) is unloading the AppDomain.  On another thread  in the process of unloading AppDomain we call GC  which is normal.  When we call GC, Finalizer thread goes off to clean up RCWs.  It’s attempting to clean them up and it needs to switch to an STA thread.
 
The STA thread it’s trying to switch to is thread 16 - the one that’s running the page.  That thread is in a wait state, waiting for AppDomain unload to finish, so we’re essentially in a deadlock.
 
The problem here is that thread 16 got switched to STA (from MTA) most likely by calling CoInitialize/CoUnInitialize by a COM component (we don’t know which one but it requies STA).  CLR went into a regular wait state on it, since it wasn’t aware of this and it still thinks the thread is an MTA thread and this wait state doesn’t allow for anyone to switch to that thread while waiting.. (it doesn’t pump messages).
 
Action Plan:
We have to add an attribute AspCompat="true" in the page directive and test whether the issue still comes up.

转载于:https://www.cnblogs.com/jmax/archive/2012/05/02/2478959.html

你可能感兴趣的文章
CentOS 网络设置修改
查看>>
二分图
查看>>
python小白-day5 random模块
查看>>
Git Tips
查看>>
[Python] logging.logger
查看>>
2019春第一次课程设计报告
查看>>
Permutations
查看>>
msp430项目编程13
查看>>
msp430项目编程34
查看>>
【IIS】IIS 7.0/7.5 绑定
查看>>
[SQL] 命令远程恢复数据库
查看>>
人生得以遇见
查看>>
让 .gitignore 文件生效
查看>>
Daily Scrum 2012/11/30
查看>>
用Python3实现的Mycin专家系统简单实例
查看>>
TortoiseSVN tutorial
查看>>
poj-2376 Cleaning Shifts (排序+贪心)
查看>>
mssql 创建触发器
查看>>
2.python数据结构的性能分析
查看>>
DataTables给表格绑定事件
查看>>