Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FileUpload .net control and saving files to virtual folder on remote file server

I have a .net website that resides on a webserver running IIS 6.0 on win2k3 server. This includes a virtual directory that points via a UNC name to a file server. The "connect as" is set to use a service account in our AD domain that has access to the web application as well as write and modify to the file server folder. I am currently using aliasing with the service account and have set the appropriate permissions on the Miscrosoft.net temp files folder on the web server. I am unable to create a write directory or save a file. Any information will be appreciated.

like image 784
Arlene Ogden Avatar asked Nov 05 '22 19:11

Arlene Ogden


1 Answers

First, "Connect as" passwords will not be cached forever in memory (reboot) and you may need to seek alternative to this connectivity method for that reason unfortunately.

Secondly, does the ASP.NET worker account "IUSR_IIS Machine Name" have access to the destination directory you are writing on? I am assuming no, because it will not be a known user on the remote server. This means that the "Everyone" special user/object will have to be given access (in your particular scenario).

An alternative would be to connect using a user known to both hosts.

like image 144
Nikolaos Avatar answered Nov 15 '22 10:11

Nikolaos