title: Element 'system.webServer' has invalid child element 'rewrite'. Should I fix this, and how?
body: <p>I have a number of rewrite rules for a lot of things that I did in IIS7, like removing trailing slashes, canonnical URLs, lowercase lettering, and such.  IIS altered my web.config, and everything works fine on the website, like it should.  But in the Visual Studio web.config, the opening <code>&lt;rewrite&gt;</code> statement is underlined in blue, and at the bottom of VS, it says that <strong>the element 'system.webServer' has invalid child element 'rewrite'</strong>.  But this is how IIS made it ... I didn't do this manually.  Should I be concerned with this VS error, or should I just leave as be, since it's working how it should work?</p>
  
  <p>Here's an example of my web.config:</p>
  
  <pre><code>    &lt;system.webServer&gt;
      &lt;rewrite&gt;         &lt;-------------------- this is underlined in squiggly blue
          &lt;rules&gt;
              &lt;rule name="RemoveASPX" enabled="true" stopProcessing="true"&gt;
                  &lt;match url="(.*)\.aspx" /&gt;
                  &lt;action type="Redirect" url="{R:1}" /&gt;
                  &lt;conditions logicalGrouping="MatchAll"&gt;
                      &lt;add input="{URL}" pattern="(.*)/default.aspx" negate="true" /&gt;
                      &lt;add input="{URL}" pattern="(.*)/admin/*" negate="true" /&gt;
                      &lt;add input="{URL}" pattern="(.*)/desktopmodules/*" negate="true" /&gt;
                  &lt;/conditions&gt;
              &lt;/rule&gt;
  </code></pre>
  
  <p>There are about 5 or 6 other rules, then a closing <code>&lt;/system.webServer&gt;</code> at the end.</p>