title: Getting Access denied in asp.net core application
body: <p>I published <code>API</code> who execute DLL into <code>IIS</code> asp.net core application where I'm getting access denied to my files. I read a lot of forums about this error:</p>
  
  <p>To execute DLL in webconfig I have:</p>
  
  <pre><code>&lt;add key="myFile" value="D:\WebSites\business.myapi.WebApi\Web\App_Data\bin\myfile.NCD" /&gt;
  </code></pre>
  
  <p>In WebConfig I try adding:</p>
  
  <pre><code>&lt;system.web&gt;
  &lt;authorization&gt;
    &lt;allow users="*" /&gt;
  &lt;/authorization&gt;
    &lt;customErrors mode="True" /&gt;
    &lt;trust level="Full" /&gt;
      &lt;compilation targetFramework="4.7" /&gt;
      &lt;httpRuntime targetFramework="4.7" /&gt;
          &lt;identity impersonate="false" /&gt;
          &lt;authentication mode="Windows" /&gt;
    &lt;/system.web&gt;
  </code></pre>
  
  <p>Also I set <code>IIS_IUSRS</code> user with full permisions and .NET Trust Levels are setted to Full (internal)</p>
  
  <p>Nothing works, I'm really desesperated.</p>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Exception: System.Security.SecurityException: Access is denied. at ...
    The Zone of the assembly that failed was: MyComputer Inner Exception:
    Access is denied.</p>
  </blockquote>
  
  <p>Someone have an idea why this issue still appearing after add permissions?</p>