Re: Create a writable folder in aspnet setup project
From: roger (xrsr_at_rogerware.com)
Date: 10/20/04
- Next message: Raterus: "Re: Impersonation in ASP.NET"
- Previous message: Joel Cade: "Re: trimming text in a datagrid to match column length"
- In reply to: Naveen K Kohli: "Re: Create a writable folder in aspnet setup project"
- Next in thread: roger: "Re: Create a writable folder in aspnet setup project"
- Reply: roger: "Re: Create a writable folder in aspnet setup project"
- Messages sorted by: [ date ] [ thread ]
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
>>
>>
>
>
- Next message: Raterus: "Re: Impersonation in ASP.NET"
- Previous message: Joel Cade: "Re: trimming text in a datagrid to match column length"
- In reply to: Naveen K Kohli: "Re: Create a writable folder in aspnet setup project"
- Next in thread: roger: "Re: Create a writable folder in aspnet setup project"
- Reply: roger: "Re: Create a writable folder in aspnet setup project"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|