473,320 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Frustrated setting up write permission to a folder

OK, I know this sounds stupid, but I have been playing with this for
hours, and could not get a clue.

In my asp.net 2.0 web application, I generate charts on the fly. I
would like to save the charts png images in a particular folder. So,
I created a folder ChartImages under the root of my web application.

Whenever I run the web application, I get a folder access is denied
error.

Well, if I choose to save the png images directly under the root of
the web application, though organizationally messy, I don't run into
problems at all.

I have added the ASPNET account to this ChartImages folder, and let it
have full control, but it still doesn't work. It makes no difference
whether or not I inherit the permission from the parent folder.

I see people making the same manipulation and it works. For example,
at

http://forums.asp.net/t/1185795.aspx , Mike offered the same solution:

<quote>
When you right click on a folder, you should have an option in the
context menu which says something like Security and Permission..., or
if you select Properties, you should see a Security tab. If you can't
see these, you will have to uncheck Use Simple File Sharing in Folder
Options.

Once you've done that, you should get the Security option. Within
that, Click Add, then Advanced, then Find Now. ASPNET should appear
somewhere in the list. Select it, click OK, then click OK again.
Select it in the Group or User names, then click Modify. Apply, and
that's it.
</quote>

How come I cannot make it work? Am I missing anything critical?
Thank you very much!
Feb 26 '08 #1
1 1538
"gnewsgroup" <gn********@gmail.comwrote in message
news:b9**********************************@b1g2000h sg.googlegroups.com...
I have added the ASPNET account to this ChartImages folder,
Are you absolutely certain that your web app is running under the ASPNET
account...?
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Feb 26 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
0
by: Srilatha | last post by:
Hi, I have a folder called "Public_Documents" on my web server. The documents in this folder should be accessible to everyone. I want to create a sub folder here "Private Documents". Only the...
2
by: Chen Zhuo | last post by:
Hi, I need to write some code to test whether a folder has read/write permission. The idea is to try to read sub-directories in this folder, if succeed, then test whether it's read-only. Any...
0
by: Samuel Shum | last post by:
Hello, I'm just wondering how I could set files and folders permission with VB.NET? I find there is a class "system.security.permissions" which seems to do the job but the samples are pretty...
4
by: Santaji | last post by:
Hi, We have an ASP.NET application which needs to write some files on the disk. For these we need to give ASP.NET user the Write permission for that particular folder. This is possible from...
6
by: sambuela | last post by:
How can I write message to the file located in the wwwroot directory? It seems that IIS protect these files. Let make me cannot do the I/O writing sucessfully. I try to open file's write...
0
by: =?Utf-8?B?U2FsaW0=?= | last post by:
Hi .Net gurus, I have a .Net C# application. I need to set permission for a domain user on given file share. Admin specifies the file share name as \\machine-name\shared Folder and user name...
5
by: daokfella | last post by:
I have a custom web.config section similar to the following: <CustomAuthSettings attr1="" attr2=""> <Locations RedirectUrl="Invalid.aspx"> <add Path="test.aspx" Roles="1,2,3" Permissions="4,5,6"...
2
by: harrish | last post by:
Can we set folder permissions in IIS 5 through ASP 2.0 coding? In my case, there is a particular folder named "Resumes" in the website in which anonymous users can post their profile but only...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.