Re: Frustrated setting up write permission to a folder
- From: "sloan" <sloan@xxxxxxxxx>
- Date: Tue, 26 Feb 2008 13:31:33 -0500
I don't see any issues from your description.
Is this DEV or Production??
In a DEV environment, you may have to grant permissions to this directory
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Files\MyWebSite\ChartImages\
(alter for your version of dotnet, and your app name of course)
-----------------
One thing I do...when encountering something like this....
is "make sure you know who YOU are".
private string FindIIdentity()
{
try
{
//'Dim user As WindowsPrincipal =
CType(System.Threading.Thread.CurrentPrincipal, WindowsPrincipal)
//'Dim ident As IIdentity = user.Identity
string returnValue = string.Empty;
WindowsIdentity ident = WindowsIdentity.GetCurrent();
returnValue = ident.Name;
try
{
returnValue += " on " + System.Environment.MachineName;
}
catch (Exception ex)
{
}
return returnValue;
}
catch (Exception ex)
{
return "Error Finding Identity";
}
}
That's some crappy code..but it might point to something you don't see.
...
Make sure when deploying...you don't accidently unzip (or whatever your
deploy strategy is)..overwrite the folder.
It could reset the permissions and screw you.
"gnewsgroup" <gnewsgroup@xxxxxxxxx> wrote in message
news:b9ebde44-dcd5-4f42-bd36-80c06f76227c@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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!
.
- Follow-Ups:
- Re: Frustrated setting up write permission to a folder
- From: gnewsgroup
- Re: Frustrated setting up write permission to a folder
- References:
- Frustrated setting up write permission to a folder
- From: gnewsgroup
- Frustrated setting up write permission to a folder
- Prev by Date: Frustrated setting up write permission to a folder
- Next by Date: Re: Frustrated setting up write permission to a folder
- Previous by thread: Frustrated setting up write permission to a folder
- Next by thread: Re: Frustrated setting up write permission to a folder
- Index(es):
Relevant Pages
|