The element > system.webServer' has invalid child > element 'rewrite'
<blockquote>
  <p>Warning   1   The element
  'system.webServer' has invalid child
  element 'rewrite'. List of possible
  elements expected: 'asp, caching, cgi,
  defaultDocument, directoryBrowse,
  globalModules, handlers,
  httpCompression, httpErrors,
  httpLogging, httpProtocol,
  httpRedirect, httpTracing,
  isapiFilters, modules, odbcLogging,
  security, serverRuntime,
  serverSideInclude, staticContent,
  tracing, urlCompression, validation,
  management'.  D:\PROJEKTI\FoodOrder\FoodOrder\Web.config  185 4   FoodOrder</p>
</blockquote>

<p>code:</p>

<pre><code>system.webServer&gt;
        &lt;validation validateIntegratedModeConfiguration="false" /&gt;
        &lt;modules runAllManagedModulesForAllRequests="true"&gt;
            &lt;remove name="ScriptModule" /&gt;
            &lt;add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
        &lt;/modules&gt;
        &lt;handlers&gt;
            &lt;remove name="WebServiceHandlerFactory-Integrated" /&gt;
            &lt;remove name="ScriptHandlerFactory" /&gt;
            &lt;remove name="ScriptHandlerFactoryAppServices" /&gt;
            &lt;remove name="ScriptResource" /&gt;
            &lt;add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
            &lt;add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
            &lt;add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /&gt;
        &lt;/handlers&gt;
        &lt;rewrite&gt;
            &lt;rewriteMaps&gt;
                &lt;rewriteMap name="StaticRewrites"&gt;
                    &lt;!--&lt;add key="/Default.aspx" value="/Default.aspx" /&gt;--&gt;
                &lt;/rewriteMap&gt;
            &lt;/rewriteMaps&gt;
            &lt;rules&gt;
</code></pre>

<p>page works but i always get warning of this and when i publish page i get publish error becouse of this...</p>
