Hello! I try copy my user folder and catch error:
Подробная информация об использовании оперативной
(JIT) отладки вместо данного диалогового
окна содержится в конце этого сообщения.
************** Текст исключения **************
System.AggregateException: Произошла одна или несколько ошибок. ---> System.UnauthorizedAccessException: Отказано в доступе по пути "C:\Users\Dmitriy\NetHood".
в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
в System.IO.FileSystemEnumerableIterator1.CommonInit() в System.IO.FileSystemEnumerableIterator
1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler1 resultHandler, Boolean checkHost) в System.IO.Directory.GetFiles(String path) в FreeMove.Form1.<>c__DisplayClass5_0.<CheckFolders>b__1(String dir) в System.Threading.Tasks.Parallel.<>c__DisplayClass30_0
2.b__0(Int32 i)
в System.Threading.Tasks.Parallel.<>c__DisplayClass17_01.<ForWorker>b__1() в System.Threading.Tasks.Task.InnerInvoke() в System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) в System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object ) --- Конец трассировки внутреннего стека исключений --- в System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) в System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) в System.Threading.Tasks.Task.Wait() в System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action
1 body, Action2 bodyWithState, Func
4 bodyWithLocal, Func1 localInit, Action
1 localFinally)
в System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](TSource[] array, ParallelOptions parallelOptions, Action1 body, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally) в System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable
1 source, ParallelOptions parallelOptions, Action1 body, Action
2 bodyWithState, Action3 bodyWithStateAndIndex, Func
4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func
1 localInit, Action1 localFinally) в System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable
1 source, Action1 body) в FreeMove.Form1.CheckFolders(String source, String destination) в FreeMove.Form1.Begin() в FreeMove.Form1.Button_Move_Click(Object sender, EventArgs e) в System.Windows.Forms.Control.OnClick(EventArgs e) в System.Windows.Forms.Button.OnClick(EventArgs e) в System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) в System.Windows.Forms.Control.WndProc(Message& m) в System.Windows.Forms.ButtonBase.WndProc(Message& m) в System.Windows.Forms.Button.WndProc(Message& m) в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ---> (Внутреннее исключение #0) System.UnauthorizedAccessException: Отказано в доступе по пути "C:\Users\Dmitriy\NetHood". в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) в System.IO.FileSystemEnumerableIterator
1.CommonInit()
в System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler
1 resultHandler, Boolean checkHost)
в System.IO.Directory.GetFiles(String path)
в FreeMove.Form1.<>c__DisplayClass5_0.b__1(String dir)
в System.Threading.Tasks.Parallel.<>c__DisplayClass30_02.<ForEachWorker>b__0(Int32 i) в System.Threading.Tasks.Parallel.<>c__DisplayClass17_0
1.b__1()
в System.Threading.Tasks.Task.InnerInvoke()
в System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
в System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )<---
---> (Внутреннее исключение #1) System.AggregateException: Произошла одна или несколько ошибок. ---> System.UnauthorizedAccessException: Отказано в доступе по пути "C:\Users\Dmitriy\Searches\Everywhere.search-ms".
в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
в System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
в System.IO.FileInfo.Open(FileMode mode, FileAccess access, FileShare share)
в FreeMove.Form1.<>c__DisplayClass5_0.g__CheckFile|2(String file)
в FreeMove.Form1.<>c__DisplayClass5_0.b__3(String file)
в System.Threading.Tasks.Parallel.<>c__DisplayClass30_02.<ForEachWorker>b__0(Int32 i) в System.Threading.Tasks.Parallel.<>c__DisplayClass17_0
1.b__1()
в System.Threading.Tasks.Task.InnerInvoke()
в System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
в System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )
--- Конец трассировки внутреннего стека исключений ---
в System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
в System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
в System.Threading.Tasks.Task.Wait()
в System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action1 body, Action
2 bodyWithState, Func4 bodyWithLocal, Func
1 localInit, Action1 localFinally) в System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](TSource[] array, ParallelOptions parallelOptions, Action
1 body, Action2 bodyWithState, Action
3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func
5 bodyWithEverything, Func1 localInit, Action
1 localFinally)
в System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action
1 body, Action2 bodyWithState, Action
3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func
5 bodyWithEverything, Func1 localInit, Action
1 localFinally)
в System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action
1 body)
в FreeMove.Form1.<>c__DisplayClass5_0.b__1(String dir)
в System.Threading.Tasks.Parallel.<>c__DisplayClass30_02.<ForEachWorker>b__0(Int32 i) в System.Threading.Tasks.Parallel.<>c__DisplayClass17_0
1.b__1()
в System.Threading.Tasks.Task.InnerInvoke()
в System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
в System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )
---> (Внутреннее исключение #0) System.UnauthorizedAccessException: Отказано в доступе по пути "C:\Users\Dmitriy\Searches\Everywhere.search-ms".
в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
в System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
в System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
в System.IO.FileInfo.Open(FileMode mode, FileAccess access, FileShare share)
в FreeMove.Form1.<>c__DisplayClass5_0.g__CheckFile|2(String file)
в FreeMove.Form1.<>c__DisplayClass5_0.b__3(String file)
в System.Threading.Tasks.Parallel.<>c__DisplayClass30_02.<ForEachWorker>b__0(Int32 i) в System.Threading.Tasks.Parallel.<>c__DisplayClass17_0
1.b__1()
в System.Threading.Tasks.Task.InnerInvoke()
в System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
в System.Threading.Tasks.Task.<>c__DisplayClass176_0.b__0(Object )<---
<---
************** Загруженные сборки **************
mscorlib
Версия сборки: 4.0.0.0
Версия Win32: 4.7.3260.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
FreeMove
Версия сборки: 1.5.0.0
Версия Win32: 1.5.0
CodeBase: file:///D:/Work/Tools/FreeMove.exe
System.Windows.Forms
Версия сборки: 4.0.0.0
Версия Win32: 4.7.3260.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
Версия сборки: 4.0.0.0
Версия Win32: 4.7.3314.0 built by: NET472REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
System.Drawing
Версия сборки: 4.0.0.0
Версия Win32: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Configuration
Версия сборки: 4.0.0.0
Версия Win32: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Core
Версия сборки: 4.0.0.0
Версия Win32: 4.7.3260.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
System.Xml
Версия сборки: 4.0.0.0
Версия Win32: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
mscorlib.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/mscorlib.resources.dll
System.Windows.Forms.resources
Версия сборки: 4.0.0.0
Версия Win32: 4.7.3190.0 built by: NET472REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ru_b77a5c561934e089/System.Windows.Forms.resources.dll
************** Оперативная отладка (JIT) **************
Для подключения оперативной (JIT) отладки файл .config данного
приложения или компьютера (machine.config) должен иметь
значение jitDebugging, установленное в секции system.windows.forms.
Приложение также должно быть скомпилировано с включенной
отладкой.
Например:
При включенной отладке JIT любое необрабатываемое исключение
пересылается отладчику JIT, зарегистрированному на данном компьютере,
вместо того чтобы обрабатываться данным диалоговым окном.