Inhoud blog
  • ASP.NET - Asynchronous call to a webservice with impersonation
  • ASP.NET - Custom object as parameter for ObjectDataSource
  • ASP.NET - Identity impersonation
  • MyCalendar - add events without postbacks
  • ASP..NET Web Parts
    Zoeken in blog

    My Profile
  • LinkedIn
  • My Favorite Blogs
  • Kevin DeRudder
  • Rudi Larno
  • David Hayden
  • David Cumps
  • Reinout's blog
    Talking about new features, useful things, frustrations in .NET and so on...
    31-08-2007
    Klik hier om een link te hebben waarmee u dit artikel later terug kunt lezen.ASP.NET - Identity impersonation
    In the machine.config file, locate the <identity> element.  The default setting for the <identity> element is:

     

    <identity impersonate="false" userName="" password=""/>

     

    If you set the identity impersonation to true, but do not specify a user name and password, then the worker process attempts to access files as the IUSR_machinename account.  Now, specify a user name and password in the <identity> element, such as

     

    <identity impersonate="true" userName="myLocalUser" password="myUserPassword"/>

     

    In this setup, it is true that the ASP.NET worker process still runs as system, but when the worker process tries to access files on the server (either in the virtual directory, or in the Temporary ASP.NET Files directory for just-in-time compilation), it does so as the user specified in the <identity> element, not as the system user.


    As a result, it's necessary to allow this user to access the following folder (otherwise you will get Access Denied errors) :

    C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Files

    31-08-2007 om 13:47 geschreven door Reinout Waelput  




    Archief per week
  • 03/09-09/09 2007
  • 27/08-02/09 2007
  • 20/08-26/08 2007
  • 13/08-19/08 2007
  • 06/08-12/08 2007
  • 26/09-02/10 2005

    E-mail mij

    Druk op onderstaande knop om mij te e-mailen.



    Blog tegen de wet? Klik hier.
    Gratis blog op https://www.bloggen.be - Meer blogs