Topic: KB4103472 AND TaskCanceledException
Such situation: on Wednesday evening on a working computer on windows update this arrived KB (the Preliminary version of a packet of corrections for a. net Framework 3.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1 in Windows 7 and Server 2008 R2 for 64-digit systems (KB4103472), 2018-05). I all environment since morning pottered with one application (WPF, target framework=4.5), and all was as it should be. I come on Thursday since morning on operation, I reboot a computer, and this application which put back behaved absolutely normally and predictedly, at an output began to throw out TaskCanceledException:
System.Threading.Tasks.TaskCanceledException: the task Is cancelled. In System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (Task task) In System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (Task task) In System.Windows.Threading.DispatcherOperation.Wait (TimeSpan timeout) In System.Windows.Threading.Dispatcher.InvokeImpl (DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout) In System.Windows.Threading.Dispatcher.Invoke (Action callback, DispatcherPriority priority, CancellationToken cancelltionToken, TimeSpan timeout) In MS.Internal. WeakEventTable. OnShutDown () In MS.Internal.WeakEventTable.WeakEventTableShutDownListener.OnShutDown (Object target, Object sender, EventArgs e) In MS.Internal.ShutDownListener.HandleShutDown (Object sender, EventArgs e)
- It is full , given by one application-oriented method which recursively pulls out from InnerException, TargetInvocationException, AggregateException, . I.e. that is resulted above is everything that is. Yesterday even day has been devoted on the reasons of it TaskCanceledException. Towards evening recalled that in the environment any update was put, looked - aha, for.Net Framework. Took down this update - all again earned normally. Anybody with similar did not face?
P.S. And by the time of embarkation of it application already is half complete - for example, used NLog already had time to close all the (it is used 2 target': console and file), and the aforesaid - from normal Console. WriteLine.