1

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.

2

Re: KB4103472 AND TaskCanceledException

Very Pavlovny dream;
Can quite be that KB at anything and simply resources are not released correctly.
And update is simple "stars added on another".
- The error on the screen quits? Or only in a broad gull?
- If easier start and at once to close too? Or after some functional?

3

Re: KB4103472 AND TaskCanceledException

And this too not the reader...

Very Pavlovny wrote:

Took down this update - all again earned normally.

Petro123 wrote:

and simply resources

are not released correctly
Aha, teach let's me release resources correctly.

4

Re: KB4103472 AND TaskCanceledException

Very Pavlovny wrote:

this too not the reader...

there is a heap of examples when the update simply opens a code lack.

Very Pavlovny wrote:

Aha, teach let's me release resources correctly.

pros too are mistaken))).
For sure)).

5

Re: KB4103472 AND TaskCanceledException

Petro123 wrote:

it is passed...
There is a heap of examples when the update simply opens a code lack.

To application about which above there was a speech, years 5, and for all 5 years the lack was not opened, and here was suddenly opened, aha.

6

Re: KB4103472 AND TaskCanceledException

Very Pavlovny dream;
APPRX.
One chance on 500 that a bug in update MS.
On questions want answer. Want is not present.

7

Re: KB4103472 AND TaskCanceledException

at  a debugger at application also look in window Task' what  are fulfilled at present.
From an error it is visible that it was fulfilled  and it has been excellent, apparently at the moment of clearing of resources.
Find necessary , understand the nature  errors.

8

Re: KB4103472 AND TaskCanceledException

Roman Mejtes wrote:

  at  a debugger at application also look in window Task' what  are fulfilled at present.
From an error it is visible that it was fulfilled  and it has been excellent, apparently at the moment of clearing of resources.
Find necessary , understand the nature  errors.

This application does not use . Generally. And async-await too does not use. It so it is made that it is not necessary for it. At me suspicion that something they there  with a feeble binding  to INPC (see the line second from below  - certain class WeakEventTable there figures). And yes, application in immediately feeble  and events does not use - only  in a type .

9

Re: KB4103472 AND TaskCanceledException

Very Pavlovny wrote:

is passed...
This application does not use . Generally. And async-await too does not use. It so it is made that it is not necessary for it. At me suspicion that something they there  with a feeble binding  to INPC (see the line second from below  - certain class WeakEventTable there figures). And yes, application in immediately feeble  and events does not use - only  in a type .

well if you them do not use, it does not mean that in WPF they are not used smile