You have a Microsoft .NET Framework 4.0-based Windows Presentation Foundation (WPF) application.
The source object of a data binding in a control of the WPF application is an element that is defined outside the name scope of the control.
You perform some operations by using the user interface of the WPF application. After you perform these operations, the target object of the binding is removed from the visual tree and garbage collection reclaims the target element. This behavior occurs before the next layout pass is initiated in the application.
In this scenario, an ArgumentNullException exception occurs and the WPF application crashes. If you debug the application, you receive the call stack that is described in the "More information" section together with the following error message:
Value cannot be null
This problem occurs because a null argument is returned by the WPF application when it reevaluates the data binding in the control.
A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.
To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
Note You can also download this hotfix from the following Microsoft Connect website:
To apply this hotfix, you must have the .NET Framework 4.0 installed.
You do not have to restart the computer after you apply the hotfix if the affected files are not being used.
Hotfix replacement information
This hotfix does not replace any other hotfix.
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For all supported x86-based versions of Windows XP, of Windows Server 2003, of Windows Vista, of Windows Server 2008, of Windows 7, and of Windows Server 2008 R2
For all supported x64-based versions of Windows XP, of Windows Server 2003, of Windows Vista, of Windows Server 2008, of Windows 7, and of Windows Server 2008 R2
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.