title: "mshtml.HTMLWindow2Class.document " throws System.UnAuthorizedAccessException.
body: <p>I am using <strong>mshtml.HTMLWindow2Class.document</strong> property to check the state of the web page. But I kept get the following exception:</p>
  
  <p>System.UnAuthorizedAccessException.</p>
  
  <p>Anybody know how to fix it? I think maybe some permission is not configured correctly for mshtml, but I donw' know the detail steps to check and configure it.</p>
  
  <hr>
  
  <p>Maybe I could put it this way:</p>
  
  <p><em>If a COM component lacks some permission, how could I grant it?</em></p>
  
  <p>Thanks!</p>