Re: Why got error "Only one type of operation can be performed in
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 13 Sep 2007 16:49:19 -0500
Yeah, that looks like a multiple attribute modification type of problem. Do
you have the full stack trace of the error message? That would be helpful.
Is there any service pack difference between the two machines?
BTW, if you just want to overwrite an attribute value, it is much more
straightforward just to do:
entry.Properties["xxxx].Value = xxxx;
That will probably make the problem go away, even if you don't ever learn
the exact underlying cause.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Pucca" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CEF949AC-8BA4-42E4-AB70-C7DBA6258496@xxxxxxxxxxxxxxxx
Since there is no VS for me to debug on the VM server I put in a bunch of
messages to see where I'm getting this error. It's apparently coming from
my
StartCommit() method in the following code when deUGID is doing the "Add"
method. Can you see what could possible cuase this? Again, the same is
running just fine on my development PC.
int newUid = unifiedID + 1;
string strNewUID = newUid.ToString();
deUGID.Properties["meetingID"].Clear();
deUGID.Properties["meetingID"].Add(strNewUID);//This is the line of code
giving error
deUGID.CommitChanges();
--
Thanks.
"Joe Kaplan" wrote:
You need to provide more detail here. Can you show an example of the
code
that produces the error, the exact error stack trace and more information
about the differences between your development machine OS and the
deployment
server?
It could be that you have run into an ADSI limitation on Win2K server
where
multiple different types of attribute modifications are not allowed, but
it
isn't clear if that is the problem. If that is, you need to either write
your code differently or upgrade the server OS to a version of Windows
that
supports that ADSI feature (2K3 server).
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
"Pucca" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:62975E60-D783-49B8-93E3-69BEA3D63520@xxxxxxxxxxxxxxxx
Hi, I'm using vs2005, .net 2 for a C# windows applicaiton running on
Win2K
server. One method of this application, deletes, creates and modify
several
Directory Entry. This is running fine on my development PC. I put
this
on
another server and I would get error: "Only one type of operation can
be
performed in a sequence"
Does anyone what could possiblly be causing this error? Thank you.
--
Thanks.
.
- Follow-Ups:
- References:
- Prev by Date: Re: Why got error "Only one type of operation can be performed in
- Next by Date: Re: Why got error "Only one type of operation can be performed in
- Previous by thread: Re: Why got error "Only one type of operation can be performed in
- Next by thread: Re: Why got error "Only one type of operation can be performed in
- Index(es):
Relevant Pages
|