ASP .NET and accessing shared folders on another server
I needed to access in ASP.Net (it was some web service) shared folder in another server, but I received System.UnauthorizedAccessException: Access to the path "..." is denied. Application pool was running under network service account. I tried to change user account, but it did not help (I received some different error so web application did not work at all :-).)
But final solution was following - shared folder on another server is accessed by special acount named after computer name (e.g. $Server1), so you must add this account to security settings of shared folder (and to share settings too). After that, application was able to access shared folder on another server. But it probably work only if these computers are in the same domain.
Informace ke stavu builder.cz zde
vytvořil Mi.Chal. 25.8. 2009 20:58, naposledy změněnil Mi.Chal. 25.8. 2009 20:58
přečteno: 755x