470,632 Members | 2,706 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,632 developers. It's quick & easy.

How to allow my ASPNET application to create a file?

SWu
Hi all

Could someone tell me how to give my app permission to create a file in a
subfolder? At the moment, I am getting 'Access to the path
"C:\Inetpub\wwwroot\myWeb\uploadedfiles\temp.p df" is denied'.

Any help anyone can give me urgently would be greatly appreciated.

Thanks,
Stephen
Nov 18 '05 #1
4 2094
The easiest thing would be to give ASPNET user
permissions that folder. If you're ok with that from a
security point of view, then it's a good solution for you.
Thanks
-----Original Message-----
Hi all

Could someone tell me how to give my app permission to create a file in asubfolder? At the moment, I am getting 'Access to the path"C:\Inetpub\wwwroot\myWeb\uploadedfiles\temp.pd f" is denied'.
Any help anyone can give me urgently would be greatly appreciated.
Thanks,
Stephen
.

Nov 18 '05 #2
SWu
thanks, but it's not working for me.

I went to Internet Services Manager console (I am using Win XP Pro), opened
properties for that particular folder, added "Write" permission on the
Directory tab, tried that but didn't work.

Then went to Directory Security (even though I didn't think this was where I
needed to be), saw that it allowed Anonymous Access and changed the user
that it uses to ASPNET but that didn't work either.

Do you (or anyone) have any other suggestions, please?

thanks

<an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
The easiest thing would be to give ASPNET user
permissions that folder. If you're ok with that from a
security point of view, then it's a good solution for you.
Thanks
-----Original Message-----
Hi all

Could someone tell me how to give my app permission to

create a file in a
subfolder? At the moment, I am getting 'Access to the

path
"C:\Inetpub\wwwroot\myWeb\uploadedfiles\temp.pd f" is

denied'.

Any help anyone can give me urgently would be greatly

appreciated.

Thanks,
Stephen
.

Nov 18 '05 #3
Well I'm not sure why that didn't work. It should have worked assuming it's
a local drive.
You might want to try using impersonation so you're running under a user
account that has the necessary permissions. (Try setting it to your
username & pw for initial testing purposes.)
Here's more info:
http://msdn.microsoft.com/library/de...ersonation.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"SWu" <sw@rgr.com.au> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
thanks, but it's not working for me.

I went to Internet Services Manager console (I am using Win XP Pro), opened properties for that particular folder, added "Write" permission on the
Directory tab, tried that but didn't work.

Then went to Directory Security (even though I didn't think this was where I needed to be), saw that it allowed Anonymous Access and changed the user
that it uses to ASPNET but that didn't work either.

Do you (or anyone) have any other suggestions, please?

thanks

<an*******@discussions.microsoft.com> wrote in message
news:08****************************@phx.gbl...
The easiest thing would be to give ASPNET user
permissions that folder. If you're ok with that from a
security point of view, then it's a good solution for you.
Thanks
-----Original Message-----
Hi all

Could someone tell me how to give my app permission to

create a file in a
subfolder? At the moment, I am getting 'Access to the

path
"C:\Inetpub\wwwroot\myWeb\uploadedfiles\temp.pd f" is

denied'.

Any help anyone can give me urgently would be greatly

appreciated.

Thanks,
Stephen
.


Nov 18 '05 #4
Permission need to be set at the directory/file level using explorer. You're
using IIS Manager :)

--
Shiv R. Kumar
http://www.matlus.com
Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Luther Miller | last post: by
5 posts views Thread by Dave Kolb | last post: by
2 posts views Thread by Hari | last post: by
3 posts views Thread by Michael Tkachev | last post: by
6 posts views Thread by Andrew Chalk | last post: by
4 posts views Thread by Jon Paal | last post: by
16 posts views Thread by Mich | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.