Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
GeneralRe: class relationships [modified] Pin
DaveyM6923-Jun-10 23:31
professionalDaveyM6923-Jun-10 23:31 
AnswerRe: class relationships Pin
yu-jian27-Jun-10 9:41
yu-jian27-Jun-10 9:41 
QuestionFacing Problem in "Heaton Research" for crawling data in C# for "SQLWorkloadManager" Pin
deepakmcn22-Jun-10 19:33
deepakmcn22-Jun-10 19:33 
QuestionHow to prevent my .NET DLL to be decompiled? Pin
Isaac Gordon22-Jun-10 19:12
Isaac Gordon22-Jun-10 19:12 
AnswerRe: How to prevent my .NET DLL to be decompiled? Pin
Abhinav S22-Jun-10 20:38
Abhinav S22-Jun-10 20:38 
AnswerRe: How to prevent my .NET DLL to be decompiled? Pin
riced22-Jun-10 20:39
riced22-Jun-10 20:39 
AnswerRe: How to prevent my .NET DLL to be decompiled? Pin
bindasrakesh29-Nov-10 21:59
bindasrakesh29-Nov-10 21:59 
QuestionActiveDirectory (DirectoryEntry) Set/Get Attributes - Cached? Pin
Sir Dot Net22-Jun-10 11:27
Sir Dot Net22-Jun-10 11:27 
Anyone know what I can do about this.
I'm getting a user DirectoryEntry, modifying an attribute value, then committing the changes, and closing the entry, but on subsequent calls (re-get user directory->get attribute value), the value is the original... until about 10-15 seconds later.
I've tried using the RefreshCache method, and the UsePropertyCache property on the DirectoryEntry, but nothing seems to work. I don't understand why the value isn't set immediately (this is a dev ADAM server w/ virtually no load, it shouldn't be a performance issue).

Setting:
using ( DirectoryEntry entry = FindUserDirectoryEntry( username ) ) {
   if ( entry != null ) {
	if ( entry.Properties.Contains( attributeName ) ) {
		entry.Properties[attributeName].Value = value;
	} else if ( value.IsEmpty() == false ) {
		entry.Properties[attributeName].Add( value );
	}
        entry.CommitChanges();
	entry.Close();
   }
}


Getting:
DirectoryEntry entry = this.ADAMProvider.GetUserDirectoryEntry( userName );
if ( entry != null ) {
	if ( entry.Properties.Contains( attributeName ) ) {
                entry.RefreshCache(attributeName);
		value = entry.Properties[attributeName].Value.SafeToString();
	}
	entry.Close();
} 

AnswerRe: ActiveDirectory (DirectoryEntry) Set/Get Attributes - Cached? Pin
Sir Dot Net22-Jun-10 11:30
Sir Dot Net22-Jun-10 11:30 
QuestionMessage Removed Pin
22-Jun-10 6:43
tarun_jeet22-Jun-10 6:43 
AnswerRe: Base Class Authetication ?? Pin
Ennis Ray Lynch, Jr.22-Jun-10 7:40
Ennis Ray Lynch, Jr.22-Jun-10 7:40 
GeneralMessage Removed Pin
22-Jun-10 7:48
tarun_jeet22-Jun-10 7:48 
GeneralRe: Base Class Authetication ?? Pin
Ennis Ray Lynch, Jr.22-Jun-10 8:04
Ennis Ray Lynch, Jr.22-Jun-10 8:04 
GeneralOh, and Pin
Ennis Ray Lynch, Jr.22-Jun-10 8:13
Ennis Ray Lynch, Jr.22-Jun-10 8:13 
GeneralRe: Base Class Authetication ?? Pin
Not Active22-Jun-10 10:08
mentorNot Active22-Jun-10 10:08 
AnswerRe: Base Class Authetication ?? Pin
Paladin200022-Jun-10 8:10
Paladin200022-Jun-10 8:10 
GeneralRe: Base Class Authetication ?? Pin
tarun_jeet22-Jun-10 8:29
tarun_jeet22-Jun-10 8:29 
GeneralRe: Base Class Authetication ?? Pin
Luc Pattyn22-Jun-10 10:52
sitebuilderLuc Pattyn22-Jun-10 10:52 
GeneralRe: Base Class Authetication ?? Pin
Not Active22-Jun-10 15:22
mentorNot Active22-Jun-10 15:22 
QuestionClosing windows explorer Pin
teknolog12322-Jun-10 6:00
teknolog12322-Jun-10 6:00 
AnswerRe: Closing windows explorer Pin
Abhinav S22-Jun-10 6:07
Abhinav S22-Jun-10 6:07 
GeneralRe: Closing windows explorer Pin
teknolog12322-Jun-10 6:26
teknolog12322-Jun-10 6:26 
GeneralRe: Closing windows explorer Pin
David Knechtges22-Jun-10 7:17
David Knechtges22-Jun-10 7:17 
GeneralRe: Closing windows explorer Pin
Daniel Grunwald22-Jun-10 9:05
Daniel Grunwald22-Jun-10 9:05 
QuestionOAuth help Pin
Etienne_12322-Jun-10 4:33
Etienne_12322-Jun-10 4:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.