Prev: Cannot compile a solution in VS2010 which references Microsoft.SQLServer.ManagedDTS.dllunless target is changed to .NET 4.0
Next: solution w multiple web projects
From: Iain on 21 Apr 2010 06:43 All, I am getting an error with the following code : FileUpload1.PostedFile.SaveAs("//myserver/MyDirectory); When trying to write to this directory the following error is returned : UnauthorizedAccessException: Access to the path This directory exists but for some reason I can't access it via my ASP.NET application. I have granted NETWORK_SERVICE access to this folder. On my dev environment this error doesn't appear. Windows Server version is 2007. Any ideas? Iain
From: Patrice on 21 Apr 2010 07:09
Hello, AFAIK, when something runs under NETWORK SERVICE it is seen as <machine name>$ by other servers. Also the network share also has permissions. Unrelated but my personal preference would be to use \\myserver\MyDirectory (Windows uses \, http uses /). -- Patrice |