CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Brendan Tompkins [MVP]

Blog First. Ask Questions Later.

Active Directory Schema Cache Refresh Issue?

Does anyone know anything about how to get the AD Schema to refresh under IIS6 on Windows Server 2003 using Windows Authentication?

Specifically, we get the error when using the following code to get the properties of an AD User:

 

We've been struggling for days on this, and the problem seems to be somehow related to the way IIS connects to AD using Windows Authentication. Can't figure out if it is a permissions problem or what.  I've checked the impersonation and even if we impersonate a local admin account for w3wp we still get the error.  If we logon to app using Forms Authentication, everything works for a while under Windows Authentication until  1) the AD Schema Cache refreshes or 2) we recycle the IISAdmin Service. 

 



About Brendan Tompkins

Brendan has been programming with .NET since the first public beta and is owner and operator of Port Technology Services, a consultancy company providing .NET application development services to the Maritime industry. In July, 2007, he was awarded the Microsoft MVP award for ASP.NET. He's also a proud co-founder of failed .COM startup Intrinsigo, and has had a hand in the failure of numerous other businesses. He currently runs CodeBetter.Com and Devlicio.us, and lives in Norfolk, Virgina with his wife Tiara and son Ian.

View Brendan's profile on LinkedIn

Check out Devlicio.us!

Our Sponsors