Programmatically change iis rights

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

  1. thibaut

    thibaut Guest

    Hi,

    Is it possible to programmatically (c# aspnet) change IIS
    rights on a file or a directory (allow write access on
    xml files, deny download for databases,...) ?

    Thanks for your help
    thibaut, Apr 6, 2005
    #1
    1. Advertising

  2. You can change read, write and execute permissions programmatically for iis.
    You can also set a dummy scriptmap for mdf and mdf files. But it's a bit
    difficult, cause the access to the DirectoryEntry requires FullTrust.

    Daniel


    "thibaut" <> wrote in message
    news:0e4901c53a7f$5dea4920$...
    > Hi,
    >
    > Is it possible to programmatically (c# aspnet) change IIS
    > rights on a file or a directory (allow write access on
    > xml files, deny download for databases,...) ?
    >
    > Thanks for your help
    Daniel Fisher\(lennybacon\), Apr 12, 2005
    #2
    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. Matt
    Replies:
    1
    Views:
    753
    Sherif ElMetainy
    Nov 10, 2003
  2. thibaut

    Programmatically change iis rights

    thibaut, Apr 6, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    681
    John Timney \(ASP.NET MVP\)
    Apr 6, 2005
  3. cppaddict
    Replies:
    1
    Views:
    410
    cppaddict
    Aug 23, 2004
  4. =?Utf-8?B?ZGVuZGF2?=

    Developing ASP.NET w/out IIS or Admin Rights

    =?Utf-8?B?ZGVuZGF2?=, Oct 10, 2006, in forum: ASP .Net
    Replies:
    7
    Views:
    689
    Juan T. Llibre
    Jan 23, 2007
  5. Mutley

    Application Mapping in IIS and access rights

    Mutley, Feb 6, 2006, in forum: ASP .Net Security
    Replies:
    3
    Views:
    118
    Joe Kaplan \(MVP - ADSI\)
    Feb 6, 2006
Loading...

Share This Page