Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Unhandled Exception when Moving Folder of Classes from Project A to Project B #674

Open
Rpinski opened this issue Apr 8, 2015 · 0 comments

Comments

@Rpinski
Copy link
Member

Rpinski commented Apr 8, 2015

Reported in http://community.sharpdevelop.net/forums/t/22126.aspx

Unhandled Exception when Moving Folder of Classes to a different Project

SharpDevelop Version : 5.1.0.5071-Beta 2-5f965cb9
.NET Version         : 4.5.50938
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 360796kb
GC Heap Memory       : 116627kb

Exception thrown:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\MeTheUser\Documents\SharpDevelop Projects\Utility\Utility\Utility.Imaging.cs'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at ICSharpCode.AvalonEdit.Utils.FileReader.ReadFileContent(String fileName, Encoding defaultEncoding)
   at ICSharpCode.SharpDevelop.Workbench.FileService.GetFileContentFromDisk(FileName fileName, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Workbench.FileService.GetFileContent(FileName fileName)
   at CSharpBinding.Parser.TParser.GetFileContent(FileName fileName)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParseAsync(ITextSource fileContent, IProject parentProject, Boolean requestFullParseInformation, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<ParseFileAsync>d__4.MoveNext()

---- Recent log messages:
15:47:44.416 [21] ERROR -
--> Exception:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\MeTheUser\Documents\SharpDevelop Projects\Utility\Utility\Utility.FileSystem.cs'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at ICSharpCode.AvalonEdit.Utils.FileReader.ReadFileContent(String fileName, Encoding defaultEncoding)
   at ICSharpCode.SharpDevelop.Workbench.FileService.GetFileContentFromDisk(FileName fileName, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Workbench.FileService.GetFileContent(FileName fileName)
   at CSharpBinding.Parser.TParser.GetFileContent(FileName fileName)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParseAsync(ITextSource fileContent, IProject parentProject, Boolean requestFullParseInformation, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<ParseFileAsync>d__4.MoveNext()
15:47:44.417 [21] WARN - Stack trace of last exception log:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)
   at ICSharpCode.SharpDevelop.SharpDevelopExtensions.<FireAndForget>b__0(Task t)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
15:47:44.417 [27] WARN - Stack trace of last exception log:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)
   at ICSharpCode.SharpDevelop.SharpDevelopExtensions.<FireAndForget>b__0(Task t)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
15:47:44.417 [6] WARN - Stack trace of last exception log:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)
   at ICSharpCode.SharpDevelop.SharpDevelopExtensions.<FireAndForget>b__0(Task t)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
15:47:44.431 [1] DEBUG - Found file C:\Users\MeTheUser\Documents\SharpDevelop Projects\MySolutionProjectInterface\Utility\Utility.Imaging.cs
15:47:44.436 [51] ERROR -
--> Exception:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\MeTheUser\Documents\SharpDevelop Projects\Utility\Utility\Utility.Geolocation.cs'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at ICSharpCode.AvalonEdit.Utils.FileReader.ReadFileContent(String fileName, Encoding defaultEncoding)
   at ICSharpCode.SharpDevelop.Workbench.FileService.GetFileContentFromDisk(FileName fileName, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Workbench.FileService.GetFileContent(FileName fileName)
   at CSharpBinding.Parser.TParser.GetFileContent(FileName fileName)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParseAsync(ITextSource fileContent, IProject parentProject, Boolean requestFullParseInformation, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<ParseFileAsync>d__4.MoveNext()
15:47:44.437 [51] WARN - Stack trace of last exception log:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)
   at ICSharpCode.SharpDevelop.SharpDevelopExtensions.<FireAndForget>b__0(Task t)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
15:47:44.441 [1] DEBUG - Found file C:\Users\MeTheUser\Documents\SharpDevelop Projects\MySolutionProjectInterface\Utility\Utility.Math.cs
15:47:44.450 [1] DEBUG - Found file C:\Users\MeTheUser\Documents\SharpDevelop Projects\MySolutionProjectInterface\Utility\Utility.Networking.cs
15:47:44.458 [1] DEBUG - Found file C:\Users\MeTheUser\Documents\SharpDevelop Projects\MySolutionProjectInterface\Utility\Utility.Security.cs
15:47:44.465 [1] DEBUG - Found file C:\Users\MeTheUser\Documents\SharpDevelop Projects\MySolutionProjectInterface\Utility\Utility.Strings.cs
15:47:44.470 [1] DEBUG - Found file C:\Users\MeTheUser\Documents\SharpDevelop Projects\MySolutionProjectInterface\Utility\Utility.Text.cs
15:47:44.479 [1] DEBUG - Found file C:\Users\MeTheUser\Documents\SharpDevelop Projects\MySolutionProjectInterface\Utility\Utility.UI.cs
15:47:44.490 [1] DEBUG - Found file C:\Users\MeTheUser\Documents\SharpDevelop Projects\MySolutionProjectInterface\Utility\Utility.Validation.cs
15:47:44.598 [1] INFO - Initialize DirectoryNode C:\Users\MeTheUser\Documents\SharpDevelop Projects\Utility\Utility
15:47:44.650 [1] INFO - CurrentProject changed to ObjectListView2010
15:47:44.719 [1] INFO - CurrentProject changed to MySolutionProjectsIT
15:47:44.752 [1] INFO - CurrentProject changed to MySolutionProjectInterface
15:47:44.779 [1] INFO - CurrentProject changed to MyOhMeClient
15:47:44.798 [1] INFO - CurrentProject changed to MyOhMe
15:47:44.813 [1] INFO - CurrentProject changed to iMyOhMeControls
15:47:44.822 [1] INFO - CurrentProject changed to emptythings
15:47:44.857 [1] INFO - CurrentProject changed to null
15:47:45.171 [5] ERROR -
--> Exception:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\MeTheUser\Documents\SharpDevelop Projects\Utility\Utility\Utility.Imaging.cs'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at 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)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at ICSharpCode.AvalonEdit.Utils.FileReader.ReadFileContent(String fileName, Encoding defaultEncoding)
   at ICSharpCode.SharpDevelop.Workbench.FileService.GetFileContentFromDisk(FileName fileName, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Workbench.FileService.GetFileContent(FileName fileName)
   at CSharpBinding.Parser.TParser.GetFileContent(FileName fileName)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.DoParseAsync(ITextSource fileContent, IProject parentProject, Boolean requestFullParseInformation, CancellationToken cancellationToken)
   at ICSharpCode.SharpDevelop.Parser.ParserServiceEntry.<ParseFileAsync>d__4.MoveNext()
15:47:45.171 [5] WARN - Stack trace of last exception log:
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at ICSharpCode.SharpDevelop.Logging.SDMessageService.ShowException(Exception ex, String message)
   at ICSharpCode.SharpDevelop.SharpDevelopExtensions.<FireAndForget>b__0(Task t)
   at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
   at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
   at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution C:\Users\MeTheUser\Documents\SharpDevelop Projects\mysolution.sln with 8 projects]
ProjectService.CurrentProject: <null>
Workbench.ActiveContent: System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
   at System.Windows.Threading.Dispatcher.VerifyAccess()
   at ICSharpCode.SharpDevelop.DispatcherMessageLoop.VerifyAccess()
   at ICSharpCode.SharpDevelop.Workbench.WpfWorkbench.get_ActiveContent()
   at ICSharpCode.SharpDevelop.Workbench.WorkbenchStartup.<InitializeWorkbench>b__0()
   at ICSharpCode.Core.ApplicationStateInfoService.GetCurrentApplicationStateInfo()
daniil-tr added a commit to daniil-tr/SharpDevelop that referenced this issue Nov 10, 2015
Xelwon added a commit to Xelwon/SharpDevelop that referenced this issue Jul 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant