Intermittent unknown error from Active Directory

六眼飞鱼酱① 提交于 2019-12-03 15:59:10

I worked with a Microsoft Engineer for a long time to fix this so hopefully my solution can help others fix their problems.

First off the error code 0x80005000 referrers to an invalid ADSI pathname was passed, which wasn’t particularly helpfully.

We did a lot of tracing which was also not very helpful. Last thing we did was use Process Monitor to trace the Registry.

When the error occurred, I noticed a HIVE UNLOADED result happened (see screenshot)

Based on this we also found this error appearing in the event log.

Log Name:      Application 
Source:        Microsoft-Windows-User Profiles Service 
Date:          10/26/2009 8:22:13 AM 
Event ID:      1530 
Task Category: None 
Level:         Warning 
Keywords:      Classic 
User:          SYSTEM 
Computer:      SERVERNAME 
Description: 
Windows detected your registry file is still in use by other applications or services. The file will be unloaded now. The applications or services that hold your registry file may not function properly afterwards.  
DETAIL - 
1 user registry handles leaked from \Registry\User\S-1-5-21-1049297961-3057247634-349289542-1004_Classes: 
Process 2428 (\Device\HarddiskVolume1\Windows\System32\dllhost.exe) has opened key \REGISTRY\USER\S-1-5-21-1123456789-3057247634-349289542-1004_CLASSES

The engineer suggested this article https://support.microsoft.com/en-us/help/2287297/a-com-application-may-stop-working-on-windows-server-2008-when-a-user

Which seem to fix my problem.

Try to identify what domain server you will use:

Something like: = new PrincipalContext(ContextType.Domain, "YOURADDOMAIN");

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!