How to fix HTTP Error 500.22 - Internal Server Error An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode
<p>I'm learnig about <code>Http modules</code> and during last try I received:</p>

<blockquote>
  <p>HTTP Error 500.22 - Internal Server Error An ASP.NET setting has been
  detected that does not apply in Integrated managed pipeline mode.</p>
</blockquote>

<p>One of the suggested solution is: </p>

<blockquote>
  <p>from the IIS Express install directory, run appcmd migrate config "Default Web Site/".</p>
</blockquote>

<p>So from Command prompt I went to <code>C\Program Files\IIS Express</code> and then I executed: <code>appcmd migrate config "Default Web Site/"</code></p>

<p>I received command "Migrate" is not supported on object config. </p>

<p>How to do it properly?</p>