How do I write to a private folder?

Discussion in 'ASP .Net' started by Hung Nguyen, Aug 11, 2003.

  1. Hung Nguyen

    Hung Nguyen Guest

    Hi all,

    I am trying to write a stand alone C# Console program with .NET framework.
    The program will create a folder in a existing folder. The existing folder
    is set with "Make this folder private" and "Encrypt contents to secure
    data". I tried LogonUser, Impersonate, AddPermission to PermissionSet but
    none of them work. The error is "Access to ... is denied" eventhough I run
    the program in the same account that I used to create the folder. I dont
    have any problem to create to any other folders without the private and
    encrypt setting. I am using Windows XP, NTFS and the existing folder is
    created in user profile directory.

    Please help.

    TIA
    Hung Nguyen
     
    Hung Nguyen, Aug 11, 2003
    #1
    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. qazmlp
    Replies:
    19
    Views:
    812
    Daniel T.
    Feb 4, 2004
  2. DaveLessnau
    Replies:
    3
    Views:
    434
    Howard
    May 16, 2005
  3. Jeremy Bowers
    Replies:
    3
    Views:
    530
    Steven Bethard
    Jan 24, 2005
  4. Daniel Finnie
    Replies:
    3
    Views:
    198
    Logan Capaldo
    Dec 16, 2006
  5. Frank Meyer

    Private methods not so private?

    Frank Meyer, Aug 1, 2007, in forum: Ruby
    Replies:
    14
    Views:
    273
Loading...

Share This Page