I came across the following error after migrating IIS information between two servers. It turns out the old one was using IIS 7, while the new server had IIS 7.5:

===================================
IISMANAGER_ERROR_LOADING_PROVIDER_TYPE

IIS Manager could not load type ‘Microsoft.Web.Management.Iis.Rewrite.RewriteModuleProvider, Microsoft.Web.Management.Rewrite, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35’ for module provider ‘Rewrite’ that is declared in %windir%\system32\inetsrv\config\administration.config. Verify that the type is correct, and that the assembly that contains the module provider is in the Global Assembly Cache (GAC).
===================================

To clear this error and get sites working again in IIS I needed to edit the following file:

C:\Windows\System32\inetsrv\config\administration.config

Search for any instances of “7.0.0.0” and replace them with “7.5.0.0”. I had 49 occurrences of this but this was a new server so you may have even more. I recommend using an advanced text editor like Notepad++ so you can search and replace these instances quickly.

After the file is updated restart IIS and double check IIS/event viewer to be sure the error cleared.

Leave a Reply