title: URL rewrite - web.config error
body: <p>I am getting the following error when i run my .aspx page.</p>
  
  <p><strong>Error Code0x8007000d
  The configuration section 'rewrite' cannot be read because it is missing a section declaration</strong></p>
  
  <p>I have a simple v.aspx page which has the following code:</p>
  
  <p>Response.Write(Request("q"))</p>
  
  <p>My hosting server as IIS 7 installed with URL rewrite feature enabled (that's what they claim)</p>
  
  <p>My web.config file has the following lines under :</p>
  
  <p>Note: The  node has blue squiggly lines under it</p>
  
  <pre><code>&lt;rewrite&gt;
        &lt;rules&gt;
          &lt;rule name="RewriteUserFriendlyURL1" stopProcessing="true"&gt;
            &lt;match url="^([^/]+)/?$" /&gt;
            &lt;conditions&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="v.aspx?q={R:1}" /&gt;
          &lt;/rule&gt;
        &lt;/rules&gt;
      &lt;/rewrite&gt;
  </code></pre>
  
  <p>I have searched stackoverflow but did not find a solution.</p>
  
  <p>May be someone found a solution.</p>
  
  <p>TIA</p>