Re: Why got error "Only one type of operation can be performed in



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.





.



Relevant Pages

  • Re: LDIFDE Error when trying to change passwords.
    ... Can you show the command line you are trying to use? ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... import directly from the server via a command prompt, ...
    (microsoft.public.windows.server.active_directory)
  • Re: Integrated Windows Authentication Timeout?
    ... I'd suggest bumping up the auditing on both the web server and SQL ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... I do not use any session data so the session timeout should not be the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Authenticating NT Credentials in C#
    ... ability of MS LDAP to do SSPI for authentication. ... to find an LDAP server to connect to, but that can usually be located via ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ...
    (microsoft.public.dotnet.security)
  • Re: How to run as in a deamon
    ... problem to store the credentials vs. the operating system's. ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... have login rights on the server. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: ADFS System.Web.Security.SingleSignOn.WebSsoConfigurationExcep
    ... claims app doesn't overlap with the federation server ... Joe Kaplan-MS MVP Directory Services Programming ... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... entered the complete URL for the web site under "Base URL". ...
    (microsoft.public.windows.server.active_directory)