SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the Rewrite Module on IIS 7.

When I restart the Application Pool I get a Authentication Required window that doesn't except any credentials that it is given and when you click cancel it goes to a 401 unauthorized page.

The rewrite rule sends the request to an ashx page in a virtual directory (_assets).

How can I resolve this strange behavior?

Anonymous is turned on and it works fine.

The following is the rewrite rule we are using:

        <rule name="Loader" patternSyntax="ECMAScript" stopProcessing="true">
            <match url="^[a-z0-9\-\/]*$" negate="false" />
  <action type="Rewrite" url="/_assets/includes/load.ashx?q={UrlEncode:{REQUEST_URI}}" appendQueryString="false" />
share|improve this question

Are you using anonymous authentication as your authentication method? Do you have made any changes related to url rewrite modules recently?

Also, try the following command to ensure that the auth-method is configured properly:

c:\Windows\System32\inetsrv>appcmd list config "http://[site]/view/user.aspx" -section:system.webServer/security/authentication/windowsauthentication

share|improve this answer
Updated my question. Thanks for the input. – iambriansreed Apr 2 '13 at 13:18
Big bounty if you can solve this:… – iambriansreed Apr 5 '13 at 17:24
I get a error: ERROR ( message:Configuration error Filename: redirection.config Line Number: 0 Description: Cannot read configuration file due to insufficient permissions . ) – iambriansreed Apr 23 '13 at 16:06
up vote 0 down vote accepted

Enabling Kernel Mode Authentication is what fixed this issue for me.

  1. Select the site in IIS7.

  2. Open Authentication properties (below).

  3. Double click Windows Authentication.
  4. Click the checkbox next to Enable Kernel-mode authentication.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.