I've seen a few variations of this question here but I can't seem to get this to work.
I have a webserver running IIS 6 and an SBS2003 server that I want to use to share a folder. This folder will be used to store sensitive personal files inside our DMZ. The share should be set up as a Virtual Directory under the web site root.
What I tried was:
On the SBS2003 server:
1. Created a new user account on the SBS2003 server with username = webapp
2. Create the folder to be shared.
3. Modified permissions on the folder to give full access to the webapp user
4. Shared the folder as WebApp_Files
5. Modified the share permissions to give full access to the webapp user
On the IIS Web server:
1. Created a new Virtual Directory
2. Set the alias to "files"
3. Set the path to \\sbs2003name\WebApp_Files
4. Set the security credentials. Unchecked the "always use the authenticated user..." checkbox and entered the username and password for the webapp user on the SBS2003 machine
5. Set virtual directory access permissions to Read and Write
I can explore this virtual directory from within the IIS manager but when I try to serve a file from this path in the web application I get HTTP Error 500.
I get the idea from other stuff that I have read that this might be because IIS is trying to access the path using the anonymous user rather than the user that I have given permissions to (i.e. webapp).
I would rather find a way to force IIS to use this account to access the folder than create privileges for the IUSR account on the SBS server since I have a number of web applications that will need individual shares on this machine and I want to separate their permissions.
I am an asp.net/C# developer rather than an IIS or SBS guru so I am floundering a little here. Please help!