I am getting the following error when i run my .aspx page.
Error Code0x8007000d The configuration section \'rewrite\' cannot be read because it is missing a
Make sure your <rewrite>
is enclosed in the <system.webServer></system.webServer>
section.
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="RewriteUserFriendlyURL1" stopProcessing="true">
<match url="^([^/]+)/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="v.aspx?q={R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
The rewrite section in system.webServer is supported in IIS7, but not IIS6. The error is likely caused by deploying this site to a server that's only running IIS6.
Install the URL Rewrite module http://www.iis.net/download/URLRewrite and that should be sorted. It fixed my problem