-
NetUserAdd gives NERR_GroupExists
Why would that be?
I took some code from an Access form and ported to VB to put into an MTS DLL
so I can access it from a website. It works fine in Access but in VB
NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
Anyone with a clue as to why I'm getting this?
Later....
Jerry
-
Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --
>Why would that be?
>
>I took some code from an Access form and ported to VB to put into an MTS DLL
>so I can access it from a website. It works fine in Access but in VB
>NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>
>Anyone with a clue as to why I'm getting this?
From what I understand, that usually means the account name is not unique. Another
possibility is that the primary group ID field may be bogus? Wish I had more to
offer. Think either could be the case?
Later... Karl
-
Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --
>Why would that be?
>
>I took some code from an Access form and ported to VB to put into an MTS DLL
>so I can access it from a website. It works fine in Access but in VB
>NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>
>Anyone with a clue as to why I'm getting this?
From what I understand, that usually means the account name is not unique. Another
possibility is that the primary group ID field may be bogus? Wish I had more to
offer. Think either could be the case?
Later... Karl
-
Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d6b9d0@news.devx.com...
> Hi Jerry --
>
> >Why would that be?
> >
> >I took some code from an Access form and ported to VB to put into an MTS
DLL
> >so I can access it from a website. It works fine in Access but in VB
> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
> >
> >Anyone with a clue as to why I'm getting this?
>
> From what I understand, that usually means the account name is not unique.
Another
> possibility is that the primary group ID field may be bogus? Wish I had
more to
> offer. Think either could be the case?
>
> Later... Karl
>
The account name I know is not unique as I checked before I added the user.
The primary group ID could be the cause but, I'm using the same values as in
the Access application so I can't understand why it would work in Access but
not this VB app.
Later...
Jerry
-
Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d6b9d0@news.devx.com...
> Hi Jerry --
>
> >Why would that be?
> >
> >I took some code from an Access form and ported to VB to put into an MTS
DLL
> >so I can access it from a website. It works fine in Access but in VB
> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
> >
> >Anyone with a clue as to why I'm getting this?
>
> From what I understand, that usually means the account name is not unique.
Another
> possibility is that the primary group ID field may be bogus? Wish I had
more to
> offer. Think either could be the case?
>
> Later... Karl
>
The account name I know is not unique as I checked before I added the user.
The primary group ID could be the cause but, I'm using the same values as in
the Access application so I can't understand why it would work in Access but
not this VB app.
Later...
Jerry
-
Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --
>The account name I know is not unique as I checked before I added the user.
Well then, what's the question? You can't add more than one user with the same
account name. Problem solved?
Later... Karl
Jerry D. Turner wrote in message <38d6bdf9$1@news.devx.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d6b9d0@news.devx.com...
>> Hi Jerry --
>>
>> >Why would that be?
>> >
>> >I took some code from an Access form and ported to VB to put into an MTS
>DLL
>> >so I can access it from a website. It works fine in Access but in VB
>> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>> >
>> >Anyone with a clue as to why I'm getting this?
>>
>> From what I understand, that usually means the account name is not unique.
>Another
>> possibility is that the primary group ID field may be bogus? Wish I had
>more to
>> offer. Think either could be the case?
>>
>> Later... Karl
>>
>
>The account name I know is not unique as I checked before I added the user.
>The primary group ID could be the cause but, I'm using the same values as in
>the Access application so I can't understand why it would work in Access but
>not this VB app.
>
>Later...
>
>Jerry
>
>
-
Re: NetUserAdd gives NERR_GroupExists
Hi Jerry --
>The account name I know is not unique as I checked before I added the user.
Well then, what's the question? You can't add more than one user with the same
account name. Problem solved?
Later... Karl
Jerry D. Turner wrote in message <38d6bdf9$1@news.devx.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d6b9d0@news.devx.com...
>> Hi Jerry --
>>
>> >Why would that be?
>> >
>> >I took some code from an Access form and ported to VB to put into an MTS
>DLL
>> >so I can access it from a website. It works fine in Access but in VB
>> >NetUserAdd returns 123 (well, 2223) NERR_GroupExists.
>> >
>> >Anyone with a clue as to why I'm getting this?
>>
>> From what I understand, that usually means the account name is not unique.
>Another
>> possibility is that the primary group ID field may be bogus? Wish I had
>more to
>> offer. Think either could be the case?
>>
>> Later... Karl
>>
>
>The account name I know is not unique as I checked before I added the user.
>The primary group ID could be the cause but, I'm using the same values as in
>the Access application so I can't understand why it would work in Access but
>not this VB app.
>
>Later...
>
>Jerry
>
>
-
Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d7a30d$1@news.devx.com...
> Hi Jerry --
>
> >The account name I know is not unique as I checked before I added the
user.
>
> Well then, what's the question? You can't add more than one user with the
same
> account name. Problem solved?
>
> Later... Karl
*not* should not be in there...the account name *is* unique. My mind was
apparently fried when I typed that.
-
Re: NetUserAdd gives NERR_GroupExists
"Karl E. Peterson" <karl@mvps.org> wrote in message
news:38d7a30d$1@news.devx.com...
> Hi Jerry --
>
> >The account name I know is not unique as I checked before I added the
user.
>
> Well then, what's the question? You can't add more than one user with the
same
> account name. Problem solved?
>
> Later... Karl
*not* should not be in there...the account name *is* unique. My mind was
apparently fried when I typed that.
-
Re: NetUserAdd gives NERR_GroupExists
Friends don't let friends play with Net* APIs when in that state. ;-)
--
[This space intentionally left blank.]
Jerry D. Turner wrote in message <38d8001f$1@news.devx.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d7a30d$1@news.devx.com...
>> Hi Jerry --
>>
>> >The account name I know is not unique as I checked before I added the
>user.
>>
>> Well then, what's the question? You can't add more than one user with the
>same
>> account name. Problem solved?
>>
>> Later... Karl
>
>
>*not* should not be in there...the account name *is* unique. My mind was
>apparently fried when I typed that.
>
>
-
Re: NetUserAdd gives NERR_GroupExists
Friends don't let friends play with Net* APIs when in that state. ;-)
--
[This space intentionally left blank.]
Jerry D. Turner wrote in message <38d8001f$1@news.devx.com>...
>
>"Karl E. Peterson" <karl@mvps.org> wrote in message
>news:38d7a30d$1@news.devx.com...
>> Hi Jerry --
>>
>> >The account name I know is not unique as I checked before I added the
>user.
>>
>> Well then, what's the question? You can't add more than one user with the
>same
>> account name. Problem solved?
>>
>> Later... Karl
>
>
>*not* should not be in there...the account name *is* unique. My mind was
>apparently fried when I typed that.
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks