views:

16

answers:

1

I'm having a problem trying to move a file through my network, I want to transfer the release from my continuos integration virtual machine to the host of this VM. but i get this:

System.UnauthorizedAccessException: Access to the path '\\192.168.0.36\E$\WebApps\MyProgram' is denied.
  at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
  at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, DirectorySecurity dirSecurity)
  at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
  at NAnt.Core.Tasks.MoveTask.DoFileOperations()
  at NAnt.Core.Tasks.CopyTask.ExecuteTask()
  at NAnt.Core.Task.Execute()
  at NAnt.Core.Target.Execute()
  at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
  at NAnt.Core.Project.Execute()
  at NAnt.Core.Project.Run()

I'm trying to transfer from a Windows Server 2003 R2 to a Windows Server 2008 R2.

A: 

Now I've something about 5 hypothesis for this error, but basically what must be considered and solve my problem is:

  • Permissions to users with same name and same password in both servers
  • If you are running a windows service, you must run as specific users that you granted the permissions.
Luís Custódio