I've just managed to get COPS working with IIS and my Kobo.
Works out of the box with my iPad, but the Kobo required URL rewriting.
Steps taken:
1. Enabled URL rewriting in config_local.php
2. Enabled double escaping on the IIS:
CMD as administrator:
CD c:\Windows\System32\inetsrv
appcmd set config "MySiteName/ebooks" -section:system.webServer/security/requestFiltering -allowDoubleEscaping:true
(where MySiteName is the name of the site in IIS, and ebooks is the name of my virtual directory where COPS sits)
3. Installed URL Rewrite 2.0
4. Configured URL Rewrite:
Left click on my eBooks virtual directory, right click on URL Rewrite and select Open Feature, then Add Rule.
Name: COPS rewrite for eBooks
Requested URL: Matches the pattern
Pattern: download/(.*)/.*\.(.*)$
Action: Rewrite
Rewrite URL: fetch.php?data={R:1}&type={R:2}
Append query string: Tick
Stop Processing of subsequent rules: Tick
Apply
Go back to the list of rules, and select it. Move it up so it is above the default Short URLs rule (you will be warned that rules won't be inherited anymore but that's fine)
5. Restart IIS
6. Test!
Regards,
Richard.