I have an ASP.NET app which needs to save files to a network share (Samba).
The share requires a username and password to connect.
I have mapped a persistent drive to the share and provided the login credentials whilst logged in to the server as DOMAIN\WEBUSER.
I have changed the virtual directory which hosts my app to use the DOMAIN\WEBUSER account instead of the IWAM account.
However the user still cannot see the mapped drive.
What am I missing out?
It is best to use the UNC if you can as the mapped drives generally are linked to the interactive user and the virtual directory is probably connecting with a service or netwrok login type.
Another possible fix is described in this KB articleError occurs when you configure IIS to use a Samba network share as its root. Excerpted below.