Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

DirectoryEntry.CommitChanges() block my Windows Service

$
0
0

Hi All,

I'm writing a Windows Service process that blocks during the CommitChanges operation:

        DirectoryEntry ent = new DirectoryEntry( bindString );
        ent.Properties["member"].Add(newMember);
        ent.CommitChanges();

This issue does not occur every time, the Windows Service performs this operation several times and sometimes the process blocks, i have to restart the Windows Service to continue the process.

I have a dump of my process that has the following output:

This thread is waiting on data to be returned from another server via WinSock.

With this kind of output, what could be the block cause?

Another question, is there any workarround for this situation? Could i have a timeout for a CommitChanges operation? I just want to force the process to continue.

Best Regards,

Rodrigo Guerreiro




Viewing all articles
Browse latest Browse all 8156

Trending Articles