NetUserAdd gives NERR_GroupExists


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 11 of 11

Thread: NetUserAdd gives NERR_GroupExists

  1. #1
    Jerry D. Turner Guest

    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



  2. #2
    Karl E. Peterson Guest

    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



  3. #3
    Karl E. Peterson Guest

    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



  4. #4
    Jerry D. Turner Guest

    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



  5. #5
    Jerry D. Turner Guest

    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



  6. #6
    Karl E. Peterson Guest

    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
    >
    >




  7. #7
    Karl E. Peterson Guest

    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
    >
    >




  8. #8
    Jerry D. Turner Guest

    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.



  9. #9
    Jerry D. Turner Guest

    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.



  10. #10
    Karl E. Peterson Guest

    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.
    >
    >




  11. #11
    Karl E. Peterson Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center