Problem:

When using RBA Viewer from ConfigMgr Toolkit and impersonating a user(Run as) RBA Viewer crashes with a generic error: “RBAViewer has stopped working”

RBAViewer crashed

RBAViewer crashed

You’ll see the 2 error below in Event viewer, one for RBA which doesn’t really tell you anything and the other for .Net which holds the key words you’ll need to search for your solution.

RBA2

RBA Error

 

.Net Error

.Net Error

Partial text of error:

Application: RBAViewer.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.Runtime.InteropServices.COMException

Stack:

at System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInitNoContainer()

 

That error is telling us it’s failing when .Net is doing an LDAP lookup when it fails.  After doing a bunch of searches online I was able to narrow it down to an AD permissions issue with my account not being able to read an attribute from default users container.

 

Solution:

My AD admins didn’t want to hunt down exactly where the permissions issue was so they ended up giving me a Domain Admin account which works just fine. If your AD admins would like exact details then have them follow this blog post:

http://blogs.msdn.com/b/dsadsi/archive/2009/08/28/getting-an-exception-the-specified-directory-service-attribute-or-value-does-not-exist-when-you-try-to-search-a-user-in-an-ad-container-using-system-directoryservices-accountmanagement-userprincipal-findbyidentity.aspx