title: CASPOL, FullTrust and running an ActiveX Control in IE with FullTrust based on URL
body: <p>I've set up an activex control to run on a webpage. The server is able to serve this webpage to itself, but other machines on the intranet and internet aren't able to access it. </p>
  
  <p>The Caspol settings look like this:</p>
  
  <p>Code Groups:</p>
  
  <pre><code>1.  All code: FullTrust
     1.1.  Zone - MyComputer: FullTrust
        1.1.1.  StrongName - (omitted) : FullTrust
        1.1.2.  StrongName - 00000000000000000400000000000000: FullTrust
     1.2.  Zone - Intranet: FullTrust
        1.2.1.  All code: Same site Web
        1.2.2.  All code: Same directory FileIO - 'Read, PathDiscovery'
     1.3.  Zone - Internet: Internet
        1.3.1.  All code: Same site Web
     1.4.  Zone - Untrusted: Nothing
     1.5.  Zone - Trusted: Internet
        1.5.1.  All code: Same site Web
     1.6.  Url - http://MYSERVERNAME/APPLICATIONNAME/*: FullTrust
  Success
  </code></pre>
  
  <p>The application I'm trying to access is group 1.6. Am I doing something wrong here?</p>
  
  <p><strong>[Edit]</strong>
  It's worth mentioning that the IEDebug Error Log on a machine attempting to access the control from the intranet displays a long exception. The most noteworthy of it being:</p>
  
  <pre><code>System.Net.WebPermission
  The first permission that failed was:
  &lt;IPermission class="System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
  version="1"&gt;
  </code></pre>