The configuration section 'rewrite' cannot be read because it is missing a section declaration

When I downgrade back to v6 the site runs normally.. I've dug around your site and haven't found any references.. I am running II7 under Server 2008. Any help would be wonderful.. I'm leaving it in a broken state to try to hammer through it..

This issue is noted attempting to run update.php


chipradio’s picture

Priority: Major » Critical
marcvangend’s picture

Priority: Critical » Major
Status: Active » Postponed (maintainer needs more info)

It's hard to help you with so little information. Please provide all information that you can: your server environment, software versions, Drupal version, installed modules, theme, etc. Also describe the exact steps to reproduce the error. Finally, give us the exact error message and check if there are related messages in the webserver and php error logs.

PS. Support requests can never be critical. See

chipradio’s picture

I'm sorry, but I did include all of that information.. This is Server 2008, IIS7, Drupal 7.0 beta 3 (upgrading from the last version of v6, as I just created this site this week). I have no additional modules installed as I'm new to Drupal.

I followed the instructions in the readme for an update, (going from memory) meaning turning the site off, verified the theme was on Garland and turned off all non-core modules. I removed the settings.php as instructed, wiped out the web folder except the sites folder as instructed. I copy down the load for 7.0, and at this point i get the error

"The configuration section 'rewrite' cannot be read because it is missing a section declaration"

If i undo the whole thing, and put it back onto v6 from a backup, everything runs fine.

Sorry about making it critical, I did so because the site was dead on v7. I'm back to running on v6, and hopeful this is something easy to resolve as I think drupal can do alot of what I'm trying to do.. any help is most appreciated.

Did I leave anything out?

chipradio’s picture

Status: Postponed (maintainer needs more info) » Needs review

following up on the error logs.. out of the server log for IIS I don't see any error messages, and the only reference at all around the time of attempting to update is this

2010-11-23 18:23:53 GET /drupal/update.php - 80 - Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.0;+Trident/4.0;+SLCC1;+.NET+CLR+2.0.50727;+.NET+CLR+3.5.30428;+.NET+CLR+3.5.30729;+.NET+CLR+3.0.30729;+.NET4.0C;+.NET4.0E) 500 19 13 17

I looked and it appeared as though php logging was not on.. I just turned it on, and if you think it would be valuable I can try an update and see if anything gets logged. I searched a bit on the internet and found references to the web.config being the problem, which is where the rewrite section resides..

Thanks again.

marcvangend’s picture

Title: Update to V7 from V6 error » web.config error when upgrading from D6 to D7 on IIS
Category: support » bug
Priority: Major » Critical
Status: Needs review » Active
Issue tags: +Windows, +IIS

I'm sorry, but I did include all of that information.

Well, there is also PHP version, database type and version, browser... And you didn't mention the Drupal 6 version before.

Can you try to reproduce the error by creating a new installation of Drupal 6.19 and immediately upgrading it, the way you did before? That would rule out the possibility that anything went wrong in the first week of development.

Anyway, it sounds like a bug to me. Unfortunately I don't know much about IIS and web.config and I don't have a windows server to reproduce this. Anyone?

chipradio’s picture


I actually started with 6.19 this week, got it up and running and then located the D7 beta. PHP is, MYSql is 5.0.77.

chx’s picture

Version: 7.0-beta3 » 7.x-dev
Priority: Critical » Major

7.x ships with some IIS specific information in web.config. This problem is known but i was unable to unearth a solution. This can't block the release however.

chipradio’s picture

thanks for the link.. the server is completely under my control.. if this URL rewrite is truly a feature that can be turned off, I can certainly do that to see how it fares.

Heine’s picture

Do you have the URL rewrite module installed (and enabled) for this site?

chipradio’s picture

I did not.. didn't see that as a requirement anywhere and didn't need it for anything else. Actually didn't even know it existed until this error.. I did that and got past that particular error and now onto a new one which I am trying to chase down.. Error message follows:

Module CustomErrorModule
Notification SendResponse
Handler PHP_via_FastCGI
Error Code 0x80070021
Config Error This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".

chipradio’s picture

Status: Active » Closed (fixed)

RC2 fixed this somehow.. I applied that update, just as I had been applying the previous update and this most recent error was no more..

Heine’s picture

I've added a comment to #567072: Ship Drupal 7 with a configuration file for IIS 7 to improve comments in web.config and add docs/faq about this error & urlrewrite.

Hinton75’s picture

Component: update system » ajax system

Chipradio can you expand on your last post to this thread. I am also receiving the same 0x80070021 error installing Drupal 7 on windows 2008 webs server. What is the rc2 update you specified that fixed this error? Thanks in advance