I have deployed application on iis and access the application from my matchin and copy files & folder from my matchin to other folder inside wwwroot (IIS Server), But i am not able to do that. Please help !!!
Error:
System.UnauthorizedAccessException: Access to the path
'\\MyMatchinName\C$\Users\MyUserId\Desktop\Project_Published' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.FileSystemEnumerableIterator`1..ctor
(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1
resultHandler, Boolean checkHost) at System.IO.Directory.InternalGetFileDirectoryNames
(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs,
SearchOption searchOption, Boolean checkHost) at System.IO.Directory.InternalGetDirectories
(String path, String searchPattern, SearchOption searchOption) at DeplloyedApps._Default.CopyAndPasteFromLocal
(String SourcePath, String DestinationPath)