Archive for June, 2010
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:
IIS Manager could not load type ‘Microsoft.Web.Management.Iis.Rewrite.RewriteModuleProvider, Microsoft.Web.Management.Rewrite, Version=184.108.40.206, 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:
Search for any instances of “220.127.116.11” and replace them with “18.104.22.168”. 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.