I'm working on a simple webpage (ASP.NET) with some simple security requirements. One of the things the webpage needs to do is copy a file from the user's workstation to a shared folder on the network. When I run in dev mode (where the website is running on a local instace of IIS on my workstation) the file copies just fine. However, when I exexute the SAME web page (same source code) from the instance of IIS on our company webserver, the file copy fails. The error message returned from the C# code = "Access to the path is denied."
I'm trying to figure out who or what is being denied access to the shared folder. Note the following:
- I am logging in as the same user when the webpage is run from a local instance of IIS as when it is run from the network instance of IIS.
- This user has rights the the folder as configured under the security properties for the folder. This seems to be confirmed by the fact that I am able to copy the file when running the local instance of IIS.
- Anonymous Access has been turned off on both instances of IIS.
- Integrated Windows Authentication has been *Checked* under Authenticated Access on both instances of IIS.
If the same user is trying to execute the file copy in both instances, and the copy is successful when running off the local instance of IIS but not the other, shouldn't this be an IIS configuration issue?
- Another thing to note is that my local instance if IIS is running on XP (IIS v5.1) and the other instance is on Windows Server 2003 (IIS v5.0)
Hope that was clear. Any help is appreciated.