The text of this article is not in this database — only its details are. Read it on the old site: Consume ASP.Net Web API Using HttpClient in WPF
7 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Consume ASP.Net Web API Using HttpClient in WPF
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Nur Izzah MohammadPosted Nov 7, 2019, 10:11 AM
Hi, I am new to WPF for c# and I am trying to do a project which creating simple WPF application by displaying list of items from API documented mock server. I am trying to do based on few sample available it but have no luck so far. If you have any resources or similar sample that can help me with that please let me know. Thank you
Ana StevanovicPosted Jul 28, 2019, 3:21 AM
Great article, very helpful! Thanks! :)
Ahmed HaddadPosted Jun 11, 2019, 6:22 PM
There is a problem in connection =>System.AggregateException HResult=0x80131500 Message=One or more errors occurred. Source=mscorlib StackTrace: at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at System.Threading.Tasks.Task`1.get_Result() at WpfApp1.MainWindow.BindEmployList() in C:\Users\Ahmed\source\repos\WpfApp1\WpfApp1\MainWindow.xaml.cs:line 44 at WpfApp1.MainWindow.Window_Loaded(Object sender, RoutedEventArgs e) in C:\Users\Ahmed\source\repos\WpfApp1\WpfApp1\MainWindow.xaml.cs:line 33 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.RaiseEvent(RoutedEventArgs e) at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent) at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root) at MS.Internal.LoadedOrUnloadedOperation.DoWork() at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget) at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget) at System.Windows.Interop.HwndTarget.OnResize() at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam) at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(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) at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) Inner Exception 1: HttpRequestException: An error occurred while sending the request. Inner Exception 2: WebException: Unable to connect to the remote server Inner Exception 3: SocketException: No connection could be made because the target machine actively refused it
Burton RobertsPosted Nov 3, 2017, 12:44 PM
Still a great article. Short, to the point.
Tabarak HussainPosted Jul 23, 2017, 1:21 PM
Many many thanks for this valuable article
Jagan VenkatPosted Apr 18, 2017, 1:23 AM
Can you please send the code for login process for using login values gets from controllers using HTTP Client. Please help me out
Purushottam RathorePosted Jul 5, 2013, 12:34 AM
Thanks. Its really a great article for consume the web api.