webbrowser使用已过期资源的一个报错

如果webbrowser控件已更新,仍使用一个HtmlElement就会出现以下错误:

2013-12-23 17:33:48,375 [18] ERROR xx.xxx<Run>b__0 0- System.UnauthorizedAccessException: 拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at System.Windows.Forms.Control.Invoke(Delegate method)
   at xxx.business.Set_YYYYMM_Info.SetDateInfo()
   at xxx.xx.<>c__DisplayClass1.<Run>b__0()

原文地址:https://www.cnblogs.com/softidea/p/3487949.html