title: How to fix error "ANCM In-Process Handler Load Failure"?
body: <p>I'm setting up the first site in IIS on Windows Server 2016 Standard.
  This is a <code>NET Core 2.2</code> application. I cannot get the site to show.</p>
  <p>I am getting this error:</p>
  <blockquote>
  <p>HTTP Error 500.0 - ANCM In-Process Handler Load Failure</p>
  </blockquote>
  <p>What can I change to clear this error and get my site to display?</p>
  <p>My application is a <code>dll</code>.</p>
  <p>I tested my application on the server through the Command Prompt with</p>
  <pre><code>dotnet ./MyApp.dll
  </code></pre>
  <p>it displays in the browser but only on the server itself with (<code>localhost:5001/</code>).</p>
  <p>Using this method the site cannot be accessed from any other server.
  When I set up the site through IIS, I get the In-Process error both on the server and from servers attempting to access the site.</p>
  <p>At first I was receiving the Out-Process error. Something I read said to add this (hostingModel=&quot;inprocess&quot;) to my <code>web.config</code>
  so I did but now I receive the In-Process error.</p>
  <p>The site works fine when installed on my development server.</p>
  <p>The Event Viewer shows this error for &quot;IIS AspNetCore Module V2&quot;:</p>
  <blockquote>
  <p>Failed to start application '/LM/W3SVC/2/ROOT', ErrorCode '0x8000ffff'.</p>
  </blockquote>
  <p>This is my <code>web.config</code>:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
      &lt;configuration&gt;
    &lt;system.web&gt;
      &lt;customErrors mode=&quot;RemoteOnly&quot;&gt;&lt;/customErrors&gt;
          &lt;identity impersonate=&quot;false&quot; password=&quot;****&quot; userName=&quot;****&quot; /&gt;
    &lt;/system.web&gt;
    &lt;system.webServer&gt;
      &lt;handlers&gt;
        &lt;add name=&quot;aspNetCore&quot; path=&quot;*&quot; verb=&quot;*&quot; modules=&quot;AspNetCoreModuleV2&quot; resourceType=&quot;Unspecified&quot; /&gt;
      &lt;/handlers&gt;
      &lt;aspNetCore processPath=&quot;dotnet&quot; arguments=&quot;.\MyApp.dll&quot; stdoutLogEnabled=&quot;false&quot; hostingModel=&quot;inprocess&quot; stdoutLogFile=&quot;.\logs\stdout&quot; forwardWindowsAuthToken=&quot;false&quot;&gt;
        &lt;environmentVariables /&gt;
      &lt;/aspNetCore&gt;
    &lt;/system.webServer&gt;
  &lt;/configuration&gt;
  </code></pre>