I'm running IIS 7 on Server 2008 Enterprise. The server is a DC running Exchange, although that may not be relevant.
I create a directory called C:\test and put a single file called test.html in it.
Then in the IIS Manager and create a virtual directory under the default site called test and point it at C:\test. Authentication is set to pass through. Then in the authentication section for the virtual directory I enable both Basic and Windows authentication.
I then browse to http://localhost/test/test.html and get my page up. If I try it on another machine I get an auth prompt, enter my login, and then get the page.
This works fine.
Then a while later it stops working. I get repeatedly prompted for authentication and then finally get:
401 - Unauthorized: Access is denied due to invalid credentials.
You do not have permission to view this directory or page using the credentials that you supplied.
And it doesn't work again after that.
If I make a copy of C:\test to C:\test2, and then just edit the test virtual directory to point at C:\test2 it starts working again. For a while. Then it does the same behaviour.
Something must be changing after a period of time. Any suggestions as to what that could be?
Many thanks,
Tim.