ASP.Net And IIS 7 Upload Files

Hi

I have writen a page in ASP to upload files.  This works file localy, but when i move the site to a server running IIS 7 the upload fails saying access is denied.

I know this is a permissions issue, but what NTFS permissions do I need to create on the folder?  I know my AD user hass access, but it still does not work.

Can any one help?

Thanks Brasso



LVL 1
brasso_42Asked:
Who is Participating?
 
Ryan ChongCommented:
try allow Read/Write/Modify permission on your folder to user: IUSR_<machinename>

check this out:

http://www.livio.net/main/writepermissions.asp
0
 
masterpassCommented:
site to a server running IIS 7 the upload fails saying access is denied.>>>>>>>>>>


Give the permissions to NETWORK ans NETWORK SERVICE accounts
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
sethisaurabhCommented:
Give the Network Service (Read+Write+Execute) permission to resolve the issue.
0
 
brasso_42Author Commented:
Hi

I have added all of the above and still get the same.  With the IUSR_<machinename> what machinename should this be? The client or the server where IIS is installed?

The error I'm still getting is:
Error: Access to the path '\\192.168.1.1\ArticleFiles\Testfile.pdf' is denied

I am sure the path is fine as I can type it in to exporer and brows to that location.

Thanks

Brasso
0
 
masterpassCommented:
Can you try to add impersonation="true" in the web.config and try ?
<system.web>
<identity impersonate="true" />
</system.web>

Open in new window

0
 
brasso_42Author Commented:
Hi

I now get the following error and the site will not load.

HTTP Error 500.24 - Internal Server Error
An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode.

Not got a clue what that means :S

Thanks

Brasso
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.