I'm having all sorts of problems trying to move a file across the network using the File.Move command with a computer on the network. I have tried doing it with \\<server>\<sha re> and I tried mapping a drive but I still get the same error.
System.Unauthor izedAccessExcep tion: Access to the path "M:\home.wa v" is denied.
at System.IO.__Err or.WinIOError(I nt32 errorCode, String str)
at System.IO.File. Move(String sourceFileName, String destFileName)
at WatchFolder.For m1.ProtectandSe rve(String fp) in c:\files\c#\vmw atcher\form1.cs :line 147
line 147 is
File.Move(fp,sp );
where fp =c:\wavs\home.w av
and
sp = m:\home.wav or
\\w2k3\messages \home.wav
--------------------------------
From: Bill Young
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>tYTLyk4+F0O lo8XWQ4Un0A==</Id>
System.Unauthor izedAccessExcep tion: Access to the path "M:\home.wa v" is denied.
at System.IO.__Err or.WinIOError(I nt32 errorCode, String str)
at System.IO.File. Move(String sourceFileName, String destFileName)
at WatchFolder.For m1.ProtectandSe rve(String fp) in c:\files\c#\vmw atcher\form1.cs :line 147
line 147 is
File.Move(fp,sp );
where fp =c:\wavs\home.w av
and
sp = m:\home.wav or
\\w2k3\messages \home.wav
--------------------------------
From: Bill Young
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>tYTLyk4+F0O lo8XWQ4Un0A==</Id>
Comment