Posted on: 6/11/2013 9:24:08 AM | Views : 416

The site is served by Windows Server 2012 IIS 8.
Worker process uses ApplicationPoolIdentity of IIS APPPOOL\AppPoolName.
Server\UserName has necessary permissions to \\Server\SharedFolder.
This code (simplified) works well from Visual Studio 2012 on client across intranet.
IO.File.WriteAllText("\\Server\SharedFolder\Do.cmd", "type ""asdf"" > \\Server\SharedFolder\Text.txt") Dim psi As New ProcessStartInfo psi.FileName = "\\Server\SharedFolder\Do.cmd" Process.Start(psi) Once published, over internet, it yields an error.
System.UnauthorizedAccessException: Access to the path '\\Server\SharedFolder\Text.txt' is denied.
The error persists, even having granted inheritable NTFS and Share permissions to \\Server\SharedFolder for IUSR, IIS_IUSRS, IIS APPPOOL\AppPoolName, SYSTEM, NETWORK SERVICE, LOCAL SERVICE, Server\UserName, as well as Eve ...

Go to the complete details ...