Long story short: the dev server got crashed, it was Server 2008 and IIS 7.0.Re-install IIS 8.5, on Server 2012. the re-write module is 2.0.
All rewrites for all sites are using FileMapProvider. No changes there, in the mappings files.
At first run, it gave me a simple 404. After messing with it, I am in the fatal 'HTTP Error 500.50 - URL Rewrite Module Error'
Still, not working and throwing "System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Iis.Rewrite.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies."
I spent last two days pulling my hair off, no resolve.The rewrite module works, because if I add a simple rule in IIS directly, is fine.
This my code in web.config:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<providers>
<provider name="FileMapMainURLs" type="FileMapProvider, Microsoft.Web.Iis.Rewrite.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<settings>
<add key="FilePath" value="{DOCUMENT_ROOT}\App_Data\map-file-name.txt" />
<add key="IgnoreCase" value="1" />
<add key="Separator" value="|" />
</settings>
</provider>
</providers>
<rules>
<rule name="FileMapMainURLsRule" stopProcessing="true">
<match url="(.\*)" />
<conditions>
<add input="{FileMapMainURLs:{R:1}}" pattern="(.+)" />
</conditions>
<action type="Rewrite" url="{C:1}" />
</rule> ................................................
Many, many thanks in advance!