Quantcast
Channel: Microsoft Dynamics CRM
Viewing all articles
Browse latest Browse all 123975

Forum Post: UserAccountControl property from Active DIrectory throws Null Exception

$
0
0

Hi All,

           I am Using "UserAccountControl " Property to get value from Active Directory Users it is Working fine but for Some Users this property is not loading (which i checked  by debug it )and throws null exception ... Can anybody Help me to find out the Solution.

I am Using Below code

var flag = ((int)de.Properties["userAccountControl"].Value);

Thanks & Regards

Gourav Saini


Viewing all articles
Browse latest Browse all 123975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>