How do I prevent my ASP .NET site from continually prompting for user credentials?

Posted by gilles27 on Server Fault See other posts from Server Fault or by gilles27
Published on 2009-10-08T11:43:24Z Indexed on 2010/04/10 19:03 UTC
Read the original article Hit count: 276

I'm trying to get an ASP .NET website up and running on IIS6. The site will run in its own application pool, and uses Windows authentication, with anonymous access turned off.

When I run the app pool under NETWORK SERVICE, everything works fine. However we need the app pool to run under a different account, because this account needs some extra privileges (we are printing Word documents).

This new account is a member of the local users group, and the IIS_WPG group. It has also been granted the "Log on as a service right". When I browse to the site I am prompted for credentials, not once, but several times. When the page finally loads it looks wrong because the style sheets have not been applied.

My suspicion is that I am being prompted once for each file (e.g. all the images, styles and script files) the browser requests, and that for some reason the website is unable to validate those credentials in order to serve the files back.

If I allow anonymous access the page loads fine - we don't want to allow it but I mention it in case it offers any further clues.

My theory is that perhaps the account the app pool runs under needs permissions to validate domain credentials? If that is so, how do I enable this?

© Server Fault or respective owner

Related posts about iis

Related posts about ASP.NET