title: Web.Config causes 500 internal server error
body: <p>This is my <code>web.config</code> file contents:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt; 
  
  &lt;configuration&gt; 
  
      &lt;system.webServer&gt;
      &lt;httpErrors errorMode="Detailed" /&gt;
          &lt;asp scriptErrorSentToBrowser="true"/&gt;
          &lt;rewrite&gt;
              &lt;rules&gt;
                  &lt;rule name="Main Rule" stopProcessing="true"&gt;
                      &lt;match url=".*" /&gt;
                      &lt;conditions logicalGrouping="MatchAll"&gt;
                          &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /&gt;
                          &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /&gt;
                      &lt;/conditions&gt;
                      &lt;action type="Rewrite" url="index.php" /&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
          &lt;/rewrite&gt;
  
       &lt;/system.webServer&gt;
  
      &lt;system.web&gt;
          &lt;customErrors mode="Off"/&gt;
          &lt;compilation debug="true"/&gt;
      &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I'm trying to use pretty permalinks of wordpress.</p>
  
  <p>But this <code>web.config</code> files causes <code>500 Internal Server Error</code>.</p>
  
  <p>What is the problem?</p>