468,244 Members | 2,056 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,244 developers. It's quick & easy.

system.directoryservices question

Hi all

I have inherited a sharepoint web part from my predecessor that is
displaying an issue. It calls FindAll() to locate a specific security
group, and then enumerates through the group to retrieve the user's
display names and email addresses.

*Very* intermittently this web part will throw an exception - either
"System.Runtime.InteropServices.COMException (0x8007202A): The server
is not operational" or, sometimes, "The authentication mechanism is
unknown". When I say intermittently, I mean very intermittently - it is
fine 99% of the time. There doesn't seem to be any pattern to the
errors (have been using perfmon and netstat to watch server load when I
see it), and we can go many days without seeing it at all.

I have read online about a bug - you're not supposed to use FindOne()
with .NET 1.1 as it causes connection issues. Does anyone know about
such a problem with FindAll()?

I am really hoping someone can help, this is proving very difficult to
fix as it is so irregular and have little experience with this API.

Many TIA, Rich

Dec 17 '06 #1
2 3339
Just a suggestion. You should try Sharepoint Service 3.0 because it is
ASP.NET 2.0 web part compatible as I understand and it is still free.

chanmm

<ri****************@eshareuk.comwrote in message
news:11*********************@16g2000cwy.googlegrou ps.com...
Hi all

I have inherited a sharepoint web part from my predecessor that is
displaying an issue. It calls FindAll() to locate a specific security
group, and then enumerates through the group to retrieve the user's
display names and email addresses.

*Very* intermittently this web part will throw an exception - either
"System.Runtime.InteropServices.COMException (0x8007202A): The server
is not operational" or, sometimes, "The authentication mechanism is
unknown". When I say intermittently, I mean very intermittently - it is
fine 99% of the time. There doesn't seem to be any pattern to the
errors (have been using perfmon and netstat to watch server load when I
see it), and we can go many days without seeing it at all.

I have read online about a bug - you're not supposed to use FindOne()
with .NET 1.1 as it causes connection issues. Does anyone know about
such a problem with FindAll()?

I am really hoping someone can help, this is proving very difficult to
fix as it is so irregular and have little experience with this API.

Many TIA, Rich
Dec 18 '06 #2
Thanks but moving my production portals over to a different framework
is not really appealing compared to just fixing the web part :)

I have disposed and closed all the objects I can see in the
directorysearcher method and haven't seen an error since... Fingers
crossed...

Dec 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Chris Frohlich | last post: by
2 posts views Thread by Kelvin | last post: by
1 post views Thread by aamirghanchi | last post: by
7 posts views Thread by =?Utf-8?B?SmVycnkgQw==?= | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.