我們在兩個內部網站上有零星問題。問題通常不會同時影響這兩個網站。我們使用Active Directory登錄到我們的網站,有時我們必須回收我們的應用程序池可以登錄我們回收應用程序池之前得到的錯誤是:.Net + IIS + Active Directory問題:目錄服務不可用
login.LoginUser_Authenticate The directory service is unavailable.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_AdsObject()
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindOne()
at System.Web.Security.ActiveDirectoryMembershipProvider.FindUserEntry(DirectoryEntry
containerEntry, String filter, SearchScope searchScope, Boolean
retrieveSAMAccountName, String& sAMAccountName)
at System.Web.Security.ActiveDirectoryMembershipProvider.ValidateUserCore(String
username, String password)
at System.Web.Security.ActiveDirectoryMembershipProvider.ValidateUser(String
username, String password)
at Test1.Login.LoginUser_Authenticate(Object sender, AuthenticateEventArgs e) in
C:\Websites\ContractManagement\Test1\Login.aspx.vb:line 18
我們已經嘗試回收每天晚上該店被關閉,這似乎沒有影響這個問題。我們通常在2到3周之間沒有看到任何問題。
我個人認爲這個問題與我們有2個AD服務器並且我們是ldap連接到域的事實有關。即(LDAP://ourdomain.com/OU=GH,DC=ourdomain,DC=com
)。
我知道有一次我們遇到問題,其中一個AD服務器重新啓動,並且出於任何原因它無法解析到其他服務器。
有什麼建議嗎?
您是否嘗試過綁定到全球目錄?你是否處置了所有需要處置的對象? –
綁定到全局目錄?你在說話嗎?你有什麼例子嗎? –
有沒有這個地方?有點類似的問題 - 我們有Web服務,查詢AD並返回一些信息。 2個實例在同一臺服務器上(測試和實況)。因某種原因生活會偶爾開始拋出這個錯誤,而測試不會。如果我現場回收應用程序池,一切都很好。我無法看到會導致錯誤的兩個設置之間的任何內容。 – Doug