I'm trying to use the IIS URL Rewrite Module 2.0 to prettify SharePoint 2010 URLs for the Internet zone of an extended SharePoint application. I have the zone set up to allow anonymous users.
As long as everything on the page is viewable by anonymous, everything works fine. But if I try to go to a page containing something that triggers Windows authentication, I get the error "The local device name is already in use" out of the Windows authentication module.
This only happens when authentication happens on a page with the URL being rewritten. If I log in on a page not being rewritten, then navigate to the page with the rewritten URL that requires authentication, everything works fine. (Everything also works fine if I change the rewrite rule to a redirect rather than a rewrite.)
The rewrite rule and two failed request traces are all at https://gist.github.com/1131530.
- Rewrite rule: https://gist.github.com/1131530#file_rewrite.config
- The first failed request trace is
trace1.xml
. I'm assuming this is what is supposed to happen—that the server responds that it needs to authenticate. - The second failed request trace is
trace2.xml
. This is the one with the error "The local device name is already in use" from the Windows authentication module.
Does anyone have ideas about why that error would happen and how to fix it?