Re: Impersonation error "A required privillege is not held by the client"

From: Hethu Nanayakara (hethu@lanka.com)
Date: 12/31/02


From: "Hethu Nanayakara" <hethu@lanka.com>
Date: Tue, 31 Dec 2002 13:04:34 +0600

Thanks for the response.

How / Where do I set the "Act as part of the operating system" privilege?

Is it set on Web.Config ?

Thanks in advance
Hethu
  "Allen" <agj@bigfoot.com> wrote in message news:u0yraVHsCHA.2628@TK2MSFTNGP09...
  Hethu,

  Try granting the user under which the process is running the "Act as part of the operating system" privilege.

  Regards
  Allen
    "Hethu Nanayakara" <hethu@lanka.com> wrote in message news:eI73f##rCHA.1080@TK2MSFTNGP10...
    I want to access a UNC shared folder from a WebService.
    To do this, I impersonate the Asp.NET process in Web.config as below:

        <identity impersonate="true" userName="domain\username" password="password" />

    The user has Admin rights on the local machine.

    However, this generates the following error:

    "Could not create Windows user token from the credentials specified in the config file. Error from the operating system 'A required privilege is not held by the client."

    Can anyone tell me what I am doing wrong here?
    Thanks
    Hethu