1

I tried to fetch LDAP user information using asp . But I get System.__ComObject instead of active directory values. Please help me to solve this .

CODE

I'm getting System.__ComObject instead of active directory values . Please help me to solve this error .

ZMAX
  • 149
  • 1
  • 12
  • 1
    You're using `&` in the first and `+` in the second `If` but you're expecting the same result ? Just change `+` to `&` –  May 07 '19 at 11:10
  • 1
    sorry it's typo error . I used & but the issue is oRS.fields("givenName") it's throwing error – ZMAX May 07 '19 at 11:14
  • 1
    what is the error ? update the question title and the question body to include the new error. Specify which row throws the error. Thanks ! –  May 07 '19 at 11:16
  • @reportgunner can you tell me how to get the value instaed of system._comobject – ratna May 09 '19 at 19:15
  • I think you have to loop all of the fields and read their value like `For Each field in oRS.fields` and `field.Value()` –  May 10 '19 at 07:38
  • @reportgunner not working for me :( – ZMAX May 10 '19 at 09:56
  • Take a look at https://stackoverflow.com/questions/29819458/how-to-get-a-system-comobject-value-from-active-directory-in-c-sharp, and https://stackoverflow.com/questions/441110/why-am-i-getting-system-comobject-from-my-ldap-property – Alex May 10 '19 at 10:11

0 Answers0