I use SharpDevelop v 5.1.0.5134-RC-d5052dc5.
I used the sample code found at https://msdn.microsoft.com/en-us/library/ms229715(v=vs.110).aspx to login to the host provided by my ISP.
When the code reaches the line
Stream requestStream = request.GetRequestStream();
the program hangs and I can't stop it. The console created is also unresponsive.
When I kill the exe file, SharpDevelop comes with the following error:
SharpDevelop Version : 5.1.0.5134-RC-d5052dc5
.NET Version : 4.6.01586
OS Version : Microsoft Windows NT 6.3.9600.0
Current culture : English (Australia) (en-AU)
Running under WOW6432, processor architecture: x86-64
Working Set Memory : 168676kb
GC Heap Memory : 43428kb
Unhandled WPF exception
Exception thrown:
System.Runtime.InteropServices.COMException (0x80131301): Process was terminated. (Exception from HRESULT: 0x80131301)
at Debugger.Interop.CorDebug.ICorDebugModule.__GetFunctionFromToken(UInt32 methodDef, ICorDebugFunction& ppFunction)
at Debugger.PdbSymbolSource.<GetSequencePoints>d__5.MoveNext()
at Debugger.Breakpoint.SetBreakpoint(Module module)
at Debugger.NDebugger.AddBreakpoint(Breakpoint breakpoint)
at Debugger.NDebugger.AddBreakpoint(String fileName, Int32 line, Int32 column, Boolean enabled)
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.AddBreakpoint(BreakpointBookmark bookmark)
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.<InitializeService>b__63_0(Object sender, BookmarkEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.OnAdded(BookmarkEventArgs e)
at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.AddMark(SDBookmark bookmark)
at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.AddMark(SDBookmark bookmark, IDocument document, Int32 line)
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.ToggleBreakpointAt(ITextEditor editor, Int32 lineNumber)
at ICSharpCode.AvalonEdit.AddIn.IconBarMargin.OnMouseUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---- Recent log messages:
13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:11.783 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:27:16.319 [1] DEBUG - Resolved (Line 25, Col 49) to [CSharpInvocationResolveResult [Method System.Net.FtpWebRequest.GetRequestStream():System.IO.Stream]]
13:32:36.819 [1] ERROR - Unhandled WPF exception
--> Exception:
System.Runtime.InteropServices.COMException (0x80131301): Process was terminated. (Exception from HRESULT: 0x80131301)
at Debugger.Interop.CorDebug.ICorDebugModule.__GetFunctionFromToken(UInt32 methodDef, ICorDebugFunction& ppFunction)
at Debugger.PdbSymbolSource.<GetSequencePoints>d__5.MoveNext()
at Debugger.Breakpoint.SetBreakpoint(Module module)
at Debugger.NDebugger.AddBreakpoint(Breakpoint breakpoint)
at Debugger.NDebugger.AddBreakpoint(String fileName, Int32 line, Int32 column, Boolean enabled)
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.AddBreakpoint(BreakpointBookmark bookmark)
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.<InitializeService>b__63_0(Object sender, BookmarkEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.OnAdded(BookmarkEventArgs e)
at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.AddMark(SDBookmark bookmark)
at ICSharpCode.SharpDevelop.Editor.Bookmarks.BookmarkManager.AddMark(SDBookmark bookmark, IDocument document, Int32 line)
at ICSharpCode.SharpDevelop.Services.WindowsDebugger.ToggleBreakpointAt(ITextEditor editor, Int32 lineNumber)
at ICSharpCode.AvalonEdit.AddIn.IconBarMargin.OnMouseUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
---- Post-error application state information:
Installed 3rd party AddIns:
ProjectService.CurrentSolution: [Solution C:\_Projects\AProjectsCS\Ftp\Ftp.sln with 1 projects]
ProjectService.CurrentProject: [CSharpProject: Ftp]
Workbench.ActiveContent: [AvalonEditViewContent C:\_Projects\AProjectsCS\Ftp\Ftp\Program.cs]