Re: Create a writable folder in aspnet setup project

From: roger (xrsr_at_rogerware.com)
Date: 10/20/04


Date: Wed, 20 Oct 2004 20:13:30 GMT

Thanks for that tip.

However, when I load the activeds type library into my solution,
The symbols that I see in the ActiveDs namespace don't match
up with the code that this example shows.

According to the properties for the ActiveDs type library that I see,
it's version 1.0. Perhaps I have an older version than this example
assumes or something.

I've got Windows 2000 SP4, the .NET 1.1 framework,
and Visual Studio 2003.

I'll need to study more about ActiveDs to figure out what's up.

Unless anyone has any ideas....

"Naveen K Kohli" <naveenkohli@hotmail.com> wrote in
news:OwaxIdjtEHA.3292@TK2MSFTNGP12.phx.gbl:

> Goto the following link and there you will find an example on how to
> change permisisons on a file object. Use the same method for folder.
>
> http://www.netomatix.com/DirectoryServices.aspx
>
> Naveen Kohli
>
> "roger" <xrsr@rogerware.com> wrote in message
> news:Xns95877AA454A1Drsrrogerwarecom@63.240.76.16...
>> I've created a web setup project for my aspnet app, and added
>> a web folder item "tmp" to the File System editor under the web
>> application folder.
>> (My app uses this folder for generating image files and such)
>>
>> Problem is, I can't figure out how to make this folder writable by
>> the ASPNET user during installation.I've set the writable property
>> for the new folder object, but it doesn't give the permission to
>> the ASPNET user.
>>
>>
>> I thought to try and create a custom install action and manipulate
>> the directory permissions in there, but I can't figure out
>> how to change the current access permissions of an existing
>> directory. Alternatively, I could just create the tmp folder in the
>> custom action, but I don't see how to specify the permissions when
>> creating a directory. I see the FileStream constructor takes a
>> FileAccess argument, but I don't see any mechanism to pass one of
>> those to Directory.CreateDirectory...
>>
>>
>> Any help appreciated..
>>
>> Thanks
>>
>>
>
>



Relevant Pages

  • Re: Minimum NTFS Permissions - Theres such a thing???
    ... ?2001 Microsoft Corporation. ... HOW TO: Set Minimum NTFS Permissions Required for IIS 5.0 to Work WGID:198 ... " List Folder Contents" ...
    (microsoft.public.inetserver.iis.security)
  • Re: Unable to delete orphaned 1.5 GB System Restore folder
    ... The fact that the tech support is based in India has nothing to do with the ... If so you may want to leave this folder alone. ... down to all children folders because i can set those permissions to ... try deleting from the command line using system by using the AT ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Unable to delete orphaned 1.5 GB System Restore folder
    ... The only computers i fix are my own. ... If so you may want to leave this folder alone. ... it includes all subdirectories with inherited permissions. ... try deleting from the command line using system by using the AT ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Word mail merge data source
    ... "Peter Jamieson" wrote: ... Word on it) then there may be a problem if the folder containing the data ... Word builds a connection string. ... superset of other users' permissions - for example, ...
    (microsoft.public.word.vba.general)
  • RE: no OWA
    ... have the correct permissions was the "inetpub" folder. ... Correct the settings in IIS: ... click to check the "Hide All Microsoft Services" ...
    (microsoft.public.windows.server.sbs)