I’m working on an MVC application where the end user has to upload a file, and the application needs to put the file on a local share (C:\Files). The folder has wide open NTFS permissions (Everyone has full access), but when I try to upload the file, IIS Express barks at me, saying write access is denied. Interestingly enough, if I blow away the directory, IIS Express has no problem recreating it, it just won’t store anything in it.
It seems obvious this is a security setting with IIS Express. Can someone tell me what setting it is, where it is, and what I need to change it to so that I can get this process to work? I’ve seen a lot of similar questions, but they seem focused on NTFS permissions and the like, and I must assume that “Everyone” does in fact mean “Everyone”.
UPDATE I added the Windows 7 tag as this may be related (64 bit)
Can you post your upload code? This one works fine for me:
The above code works for both local IIS and a live site with MVC3 installed.