title: IIS (There was an error while performing this operation)
body: <p>I receive <code>There was as error while performing this operation</code> error referring to web.config.    I follow below configuration:</p>
  <blockquote>
  <ul>
  <li><p>OS is Windows server 2012 R2 with IIS version 8.5.</p>
  </li>
  <li><p>URL Rewrite 2.1 module is installed on the machine.</p>
  </li>
  <li><p>IIS_IUSRS has full access to the directory.</p>
  </li>
  <li><p>Application Initialization module is installed</p>
  </li>
  <li><p>.Net CLR Version v4.0.30319 and managed pipeline mode is integrated.</p>
  </li>
  <li><p>IIS configuration is as below:</p>
  </li>
  <li><p><a href="https://i.stack.imgur.com/czE8V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/czE8V.png" alt="enter image description here" /></a></p>
  </li>
  <li><p><a href="https://i.stack.imgur.com/MnGSL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MnGSL.png" alt="enter image description here" /></a>
  <br/>
  Web config is as below:<br/></p>
  </li>
  </ul>
  </blockquote>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
      &lt;configuration&gt;
        &lt;system.webServer&gt;
          &lt;handlers&gt;
            &lt;add name=&quot;aspNetCore&quot; path=&quot;*&quot; verb=&quot;*&quot; modules=&quot;AspNetCoreModule&quot; resourceType=&quot;Unspecified&quot; /&gt;
          &lt;/handlers&gt;
          &lt;aspNetCore processPath=&quot;dotnet&quot; arguments=&quot;.\MES.dll&quot; stdoutLogEnabled=&quot;false&quot; stdoutLogFile=&quot;.\logs\stdout&quot; /&gt;
        &lt;/system.webServer&gt;
      &lt;/configuration&gt;
      &lt;!--ProjectGuid: e8701310-485f-4f88-b7d0-1473d07238ac--&gt;
  </code></pre>
  <p>browsing the page I receive below message:
  <a href="https://i.stack.imgur.com/K0hWT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K0hWT.png" alt="enter image description here" /></a>
  However, when I remove</p>
  <pre><code>&lt;aspNetCore processPath=&quot;dotnet&quot; arguments=&quot;.\MES.dll&quot; stdoutLogEnabled=&quot;false&quot; stdoutLogFile=&quot;.\logs\stdout&quot; /&gt; 
  </code></pre>
  <p>from web.config I don't receive (There was as error while performing this operation) error but I get below error:
  <a href="https://i.stack.imgur.com/SUewr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SUewr.png" alt="enter image description here" /></a></p>