How to give ACL permissions to ASPNET account

Discussion in 'ASP .Net' started by djoledjole, Apr 6, 2005.

  1. djoledjole

    djoledjole Guest

    I must give ACL permissions to ASPNET account on the file.How to do this
    from ASP.NET code(VB.NET)
    djoledjole, Apr 6, 2005
    #1
    1. Advertising

  2. djoledjole

    James Steele Guest

    Hi djoledjole,

    1) You will have to use the Win32 API call SetNamedSecurityInfo API
    function from advapi32.dll. A big pain.

    or

    2) Have your app use cacls.exe [resource] /E /G: [user_account]:F

    Dino Esposito explains this all very nicely on his weblog.

    http://weblogs.asp.net/despos/archive/2003/12/22/45090.aspx

    Enjoy!
    James Steele, Apr 6, 2005
    #2
    1. Advertising

  3. djoledjole

    djoledjole Guest

    Woderfull that is what I need for
    Thanks
    djoledjole, Apr 8, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Harris

    Permissions for ASPNET Account

    Simon Harris, Jan 5, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    416
    Saravana
    Jan 6, 2005
  2. =?Utf-8?B?WW9nZXNoIFBhbmNob2xp?=

    Permissions Issues with ASPNET Account

    =?Utf-8?B?WW9nZXNoIFBhbmNob2xp?=, Apr 20, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    568
    =?Utf-8?B?WW9nZXNoIFBhbmNob2xp?=
    Apr 21, 2005
  3. =?Utf-8?B?cGFsYWt3YWlfOTE5?=

    ASPNET Account Permissions for .NET 2.0?

    =?Utf-8?B?cGFsYWt3YWlfOTE5?=, Aug 15, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    4,141
    =?Utf-8?B?cGFsYWt3YWlfOTE5?=
    Aug 17, 2005
  4. nilapenn
    Replies:
    3
    Views:
    603
    Joe Kaplan \(MVP - ADSI\)
    Feb 14, 2005
  5. Replies:
    4
    Views:
    621
    Paul Clement
    Sep 15, 2005
Loading...

Share This Page