Problem in extensionAttribute15

Problem in extensionAttribute15

Post by RajeevSeka » Fri, 16 Jun 2006 15:47:58


Hi Experts,
I tried to store and retrive values in extensionAttribute15
using this code
To write:

entry.Properties["extensionAttribute15"].Value = value;
entry.CommitChanges();

To read:

string value = (string) entry.Properties["extensionAttribute15"].Value;

But i Got Some Exception Like "The specified directory service attribute
or value does not exist" .

i dont know what to do , i need to store and retrive values in
"extensionAttribute15". Please suggest some solution to my problem.

is this related to any Permission problem?

Please Help Me


Thanks & Regards,
S.Rajeev.
 
 
 

Problem in extensionAttribute15

Post by MVP - AD » Fri, 16 Jun 2006 23:15:55

Are you certain the schema has been extended to include the exchange schema?

Try doing something like:

entry.RefreshCache(new string[] {"allowedAttributes"});
string[] atts = (string[]) entry.Properties["allowedAttributes"].Value;

And then check to see if atts contains "extensionAttribute15" in the list.

Also, it would be helpful if you would cross post instead of multi-posting
and would stay on the same thread. It is hard to keep up with all the
places you are asking this question. :)

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.yqcomputer.com/