An update is available for the .NET Framework 4.5 in Windows 7 SP1, Windows Server 2008 R2 SP1, Windows Server 2008 SP2, and Windows Vista SP2: May 2013

Article translations Article translations
Article ID: 2805221 - View products that this article applies to.
Expand all | Collapse all

On This Page

Introduction

An update for the .NET Framework 4.5 is available. For more information about the issues that this update resolves, see the "Issues that this update resolves" section.

More information

How to obtain this update

Windows Update

This update is available from Windows Update.

Microsoft Download Center

The following file is available for download from the Microsoft Download Center:

Collapse this imageExpand this image
Download
Download the package now.

For more information about how to download Microsoft support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 How to obtain Microsoft support files from online services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

Prerequisites

To apply this update, you must have the .NET Framework 4.5 installed.

Restart requirement

You do not have to restart the computer after you apply this update if the affected files are not being used.

Known issue

After you install this update for the .NET Framework 4.5, you might be unable to open or create C++ or JavaScript files or projects. To resolve this issue, install the Visual Studio 2012 update that is described in the Knowledge Base (KB) article 2781514.

File information

The global version of this update 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 LDR service branch

Collapse this imageExpand this image
assets folding start collapsed
For all supported x86-based versions of Windows 7 SP1, Windows Server 2008 SP2 and Windows Vista SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
clr.dll4.0.30319.1907218,243,94430-Mar-201302:26
clrjit.dll4.0.30319.190721,239,91230-Mar-201302:26
CORPerfMonExt.dll4.0.30319.19072419,68830-Mar-201302:26
mscordacwks.dll4.0.30319.190721,829,73630-Mar-201302:26
mscordbi.dll4.0.30319.190722,165,09630-Mar-201302:26
mscorlib.dll4.0.30319.190726,002,02429-Mar-201320:09
PresentationCore.dll4.0.30319.190723,453,80029-Mar-201320:09
presentationframework.aerolite.dll4.0.30319.19072171,88030-Mar-201302:26
PresentationFramework.dll4.0.30319.190726,210,40829-Mar-201320:09
SOS.dll4.0.30319.19072879,97630-Mar-201302:26
System.ComponentModel.Composition.dll4.0.30319.19072301,41629-Mar-201320:09
System.Printing.dll4.0.30319.19072396,64829-Mar-201320:09
System.Data.dll4.0.30319.190723,415,40029-Mar-201320:09
System.Data.SqlXml.dll4.0.30319.19072816,48829-Mar-201320:09
System.Design.dll4.0.30319.190725,321,06429-Mar-201320:09
System.Messaging.dll4.0.30319.19072275,81629-Mar-201320:09
System.Security.dll4.0.30319.19072275,81629-Mar-201320:09
System.Windows.Forms.dll4.0.30319.190726,047,08029-Mar-201320:09
System.Xml.dll4.0.30319.190722,755,43229-Mar-201320:09
WindowsBase.dll4.0.30319.190721,284,45629-Mar-201320:09
WindowsFormsIntegration.dll4.0.30319.19072101,22429-Mar-201320:09
wpfgfx_v0400.dll4.0.30319.190725,713,25630-Mar-201302:26
For all supported x64-based versions of Windows 7 SP1, Windows Server 2008 R2 SP1, Windows Server 2008 SP2 and Windows Vista SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
clr.dll4.0.30319.1907223,307,11230-Mar-201303:50
clr.dll4.0.30319.1907218,243,94430-Mar-201302:26
clrjit.dll4.0.30319.190724,115,30430-Mar-201303:50
clrjit.dll4.0.30319.190721,239,91230-Mar-201302:26
CORPerfMonExt.dll4.0.30319.19072506,21630-Mar-201303:50
CORPerfMonExt.dll4.0.30319.19072419,68830-Mar-201302:26
mscordacwks.dll4.0.30319.190722,434,40830-Mar-201303:50
mscordacwks.dll4.0.30319.190721,829,73630-Mar-201302:26
mscordbi.dll4.0.30319.190723,026,79230-Mar-201303:50
mscordbi.dll4.0.30319.190722,165,09630-Mar-201302:26
mscorlib.dll4.0.30319.190725,951,33630-Mar-201303:50
mscorlib.dll4.0.30319.190726,002,02429-Mar-201320:09
PresentationCore.dll4.0.30319.190723,454,82430-Mar-201303:50
PresentationCore.dll4.0.30319.190723,453,80029-Mar-201320:09
presentationframework.aerolite.dll4.0.30319.19072171,88030-Mar-201302:26
PresentationFramework.dll4.0.30319.190726,210,40829-Mar-201320:09
SOS.dll4.0.30319.190721,111,40030-Mar-201303:50
SOS.dll4.0.30319.19072879,97630-Mar-201302:26
System.ComponentModel.Composition.dll4.0.30319.19072301,41629-Mar-201320:09
System.Printing.dll4.0.30319.19072398,18430-Mar-201303:50
System.Printing.dll4.0.30319.19072396,64829-Mar-201320:09
System.Data.dll4.0.30319.190723,443,04830-Mar-201303:50
System.Data.dll4.0.30319.190723,415,40029-Mar-201320:09
System.Data.SqlXml.dll4.0.30319.19072816,48829-Mar-201320:09
System.Design.dll4.0.30319.190725,321,06429-Mar-201320:09
System.Messaging.dll4.0.30319.19072275,81629-Mar-201320:09
System.Security.dll4.0.30319.19072275,81629-Mar-201320:09
System.Windows.Forms.dll4.0.30319.190726,047,08029-Mar-201320:09
System.XML.dll4.0.30319.190722,755,43229-Mar-201320:09
WindowsBase.dll4.0.30319.190721,284,45629-Mar-201320:09
WindowsFormsIntegration.dll4.0.30319.19072101,22429-Mar-201320:09
wpfgfx_v0400.dll4.0.30319.190727,373,67230-Mar-201303:50
wpfgfx_v0400.dll4.0.30319.190725,713,25630-Mar-201302:26
Collapse this imageExpand this image
assets folding end collapsed

For GDR service branch

Collapse this imageExpand this image
assets folding start collapsed
For all supported x86-based versions of Windows 7 SP1, Windows Server 2008 SP2 and Windows Vista SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
clr.dll4.0.30319.180476,876,68829-Mar-201322:32
clrjit.dll4.0.30319.18047451,61629-Mar-201322:32
CORPerfMonExt.dll4.0.30319.18047131,64029-Mar-201322:32
mscordacwks.dll4.0.30319.180471,299,52029-Mar-201322:32
mscordbi.dll4.0.30319.180471,096,74429-Mar-201322:32
mscorlib.dll4.0.30319.180475,171,24029-Mar-201320:20
PresentationCore.dll4.0.30319.180473,224,64829-Mar-201320:20
presentationframework.aerolite.dll4.0.30319.18047178,29629-Mar-201322:32
PresentationFramework.dll4.0.30319.180476,187,60829-Mar-201320:20
SOS.dll4.0.30319.18047747,02429-Mar-201322:32
System.ComponentModel.Composition.dll4.0.30319.18047278,66429-Mar-201320:20
System.Printing.dll4.0.30319.18047342,59229-Mar-201320:20
System.Data.dll4.0.30319.180473,174,44829-Mar-201320:20
System.Data.SqlXml.dll4.0.30319.18047742,99229-Mar-201320:20
System.Design.dll4.0.30319.180475,041,20829-Mar-201320:20
System.Messaging.dll4.0.30319.18047266,82429-Mar-201320:20
System.Security.dll4.0.30319.18047277,56829-Mar-201320:20
System.Windows.Forms.dll4.0.30319.180474,806,24029-Mar-201320:20
System.Xml.dll4.0.30319.180472,690,09629-Mar-201320:20
WindowsBase.dll4.0.30319.180471,237,56829-Mar-201320:20
WindowsFormsIntegration.dll4.0.30319.18047103,52029-Mar-201320:20
wpfgfx_v0400.dll4.0.30319.180471,688,63229-Mar-201322:32
For all supported x64-based versions of Windows 7 SP1, Windows Server 2008 R2 SP1, Windows Server 2008 SP2 and Windows Vista SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTime
clr.dll4.0.30319.180479,802,78429-Mar-201323:12
clr.dll4.0.30319.180476,876,68829-Mar-201322:32
clrjit.dll4.0.30319.180471,237,02429-Mar-201323:12
clrjit.dll4.0.30319.18047451,61629-Mar-201322:32
CORPerfMonExt.dll4.0.30319.18047157,25629-Mar-201323:12
CORPerfMonExt.dll4.0.30319.18047131,64029-Mar-201322:32
mscordacwks.dll4.0.30319.180471,742,40029-Mar-201323:12
mscordacwks.dll4.0.30319.180471,299,52029-Mar-201322:32
mscordbi.dll4.0.30319.180471,497,14429-Mar-201323:12
mscordbi.dll4.0.30319.180471,096,74429-Mar-201322:32
mscorlib.dll4.0.30319.180475,120,56829-Mar-201323:12
mscorlib.dll4.0.30319.180475,171,24029-Mar-201320:20
PresentationCore.dll4.0.30319.180473,207,75229-Mar-201323:13
PresentationCore.dll4.0.30319.180473,224,64829-Mar-201320:20
presentationframework.aerolite.dll4.0.30319.18047178,29629-Mar-201322:32
PresentationFramework.dll4.0.30319.180476,187,60829-Mar-201320:20
SOS.dll4.0.30319.18047785,44029-Mar-201323:12
SOS.dll4.0.30319.18047747,02429-Mar-201322:32
System.ComponentModel.Composition.dll4.0.30319.18047278,66429-Mar-201320:20
System.Printing.dll4.0.30319.18047342,08029-Mar-201323:13
System.Printing.dll4.0.30319.18047342,59229-Mar-201320:20
System.Data.dll4.0.30319.180473,203,63229-Mar-201323:13
System.Data.dll4.0.30319.180473,174,44829-Mar-201320:20
System.Data.SqlXml.dll4.0.30319.18047742,99229-Mar-201320:20
System.Design.dll4.0.30319.180475,041,20829-Mar-201320:20
System.Messaging.dll4.0.30319.18047266,82429-Mar-201320:20
System.Security.dll4.0.30319.18047277,56829-Mar-201320:20
System.Windows.Forms.dll4.0.30319.180474,806,24029-Mar-201320:20
System.XML.dll4.0.30319.180472,690,09629-Mar-201320:20
WindowsBase.dll4.0.30319.180471,237,56829-Mar-201320:20
WindowsFormsIntegration.dll4.0.30319.18047103,52029-Mar-201320:20
wpfgfx_v0400.dll4.0.30319.180472,123,33629-Mar-201323:13
wpfgfx_v0400.dll4.0.30319.180471,688,63229-Mar-201322:32
Collapse this imageExpand this image
assets folding end collapsed

Issues that this update resolves

This update resolves the Windows Presentation Foundation (WPF), common language routine (CLR), Windows Forms, and XML issues that are described in the following Knowledge Base (KB) article:
2750147 An update is available for the .NET Framework 4.5 in Windows 7 SP1, Windows Server 2008 R2 SP1, Windows Server 2008 SP2, and Windows Vista SP2: January 2013

CLR

Collapse this imageExpand this image
assets folding start expanded
Issue 1
You receive an incorrect value from the DateTime.TryParse method when you use codes that resemble the following:

DateTime dt = DateTime.Parse("4/21 5pm");
Console.WriteLine(dt.ToString());

if (DateTime.TryParse("4/21 5pm", out dt))
{
      Console.WriteLine(dt.ToString());
}
Console.ReadLine();
Note In this example, the DateTime.TryParse method incorrectly returns the time of 4:00 P.M. as today’s date.

Resolution

After you install the hotfix, the method tries to parse this specific pattern correctly.

To enable this hotfix, add the following code in the application configuration file:
<configuration>
    <runtime>
        <EnableAmPmParseAdjustment enabled=”1” />
    </runtime>
</configuration>
Note the hotfix does not affect the system's time and date settings.

Issue 2
When you run the following code pattern by using open generics, an unhandled exception occurs at run time:

[InheritedExport]
interface ITest2<T>
{
    void Execute();
}

class TestClass2<T> : ITest2<T>
{
    public void Execute()
    {
        Console.WriteLine();
    }

}
class Program
{
    static void Main(string[] args)
    {
        var catalog = new AssemblyCatalog(typeof(Program).Assembly);
        var container = new CompositionContainer(catalog);
        var test2 = container.GetExportedValues<ITest2<string>>();
    }
}

Issue 3
You receive a CryptographicException error when you parse the System.Security.Cryptography.Oid object.

Issue 4
In a multithread console application, the Console.ReadKey method may block the call to the Console.InputEncoding property from another thread.

Issue 5
You receive an access denied error when you try to install an assembly that is shared together with Visual Studio in the Global Assembly Cache (GAC). Additionally, The effected assembly can be broken when it is removed from the system. This issue cannot be resolved even after you restart the computer.

Issue 6
The ConcurrentQueue<T>.TryPeek method returns true. However, the object returned is null.
Collapse this imageExpand this image
assets folding end

WPF

Collapse this imageExpand this image
assets folding start expanded
Issue 1
Assume that you try to call the PrintQueue.AddJob(string jobName, string documentPath, bool fastCopy) method to print an XML Paper Specification (XPS) document on an XPS printer, and the fastCopy parameter is set to true. In this situation, the following issues occur:
  • Print tickets that are embedded in the document are ignored.
  • The preview dialog box pops up in a loop.

Issue 2
When the Content property of a ContentControl control (such as, a Button control) is set to a RoutedCommand command, the control cannot display the name of the routed command. For example, you use the following code to set the ApplicationCommands.Paste command to a Button control in the Microsoft .NET Framework 4.5 or in the Microsoft .NET Framework 4:
<Button Content="{x:Static ApplicationCommands.Paste}" />
In this situation, the Button incorrectly displays "System.Windows.Input.SecureUICommand" in the .NET Framework 4.5. However, the Button correctly displays "Paste" in the .NET Framework 4.

Issue 3
Assume that a large collection is bound to the control that supports multiple selections, such as ListBox or DataGrid. When you call the SelectedItems.Add method, you experience slow performance even if the added item is near the beginning of the collection.

Note In .NET Framework 4, you experience slow performance when the added item is near the end of the collection.

Issue 4
The hit target for content that contains small-sized text is larger than the content. When you click outside the actual bounds of the content, a click event or another corresponding event is triggered. This issue occurs when the text size decreases and the scaling factors increase.


Issue 5
Assume that you change a selector property (such as, the SelectedItem property) or ComboBox.Text property by using a binding path that contains a static property. In this situation, the binding does not react to the changes. Specifically, the new value is not written to the data item.

Issue 6
you run a .NET Framework 4.5-based WPF application on a computer that contains multiple display adapters, black bars can appear on the WPF window. This typically occurs if the WPF window is dragged from a monitor on one adapter to another monitor on a different adapter.
Issue 7
When you encounter unhandled exceptions in Windows Forms content that is hosted in a .NET Framework 4.5-based WPF application, the WPF application crashes. For example, you encounter an unhandled exception when a WPF application uses the <WindowsFormsHost> XAML object element.

Issue 8
When you type inside a Combo Box control that received focus for the first time by using the TAB key, you receive a NullReferenceException exception and the WPF application crashes.
Collapse this imageExpand this image
assets folding end

Windows Forms

Collapse this imageExpand this image
assets folding start expanded
Issue 1
Assume that you define a custom control that includes a property that can be designer-serialized, and comes with a [DefaultValue()] attribute that results in implicit type casting.

For example, the following property type is "short" and the default value is specified as an "Int32":
[DefaultValue(2)]

public short Number { get; set; }
In this scenario, when Visual Studio Windows Forms Designer serializes or de-serializes this control, a System.ArgumentException is thrown.

Issue 2
Consider the following scenario:
  • You define a base interface and a derived interface.
  • You hide the base interface property by using a "new" modifier in the derived interface. For example, you use the following code:

    public interface IInterfaceA
    {
          int PropertyA { get; set; }
          int PropertyB { get; set; }
    }
    public interface IInterfaceB : IInterfaceA
    {
          new int PropertyA { get; set; }
          int PropertyD { get; set; }
    }
  • You use the derived interface as the argument in the ListBindingHelper.GetListItemPropertiesAPI.

In this scenario, the properties that are defined on the derived interface are returned in the .NET Framework 4. This occurs because the reflection does not return properties that are defined in the base class. However, in .NET Framework 4.5, properties from the base class are included. Furthermore, the ListBindingHelper.GetListItemProperties API returns two instances of a property that is called "PropertyA".

Resolution

This update reverts the ListBindingHelper.GetListItemProperties API to the .NET Framework 4 behavior. This API is invoked at design time when IInterfaceB is set as a data source on a control (such as, a DataGridView control).
Collapse this imageExpand this image
assets folding end

System.Messaging

Collapse this imageExpand this image
assets folding start expanded

Consider the following scenario:
  • You use System.Messaging or MSMQ in a workgroup environment.
  • You use the MessageQueue.GetPrivateQueuesByMachine method to retrieve an array of MessageQueue objects for all private queues on a remote computer in the workgroup.
In this scenario, you encounter a MessageQueueException exception, and the following error message is received:

Invalid queue path name.
Collapse this imageExpand this image
assets folding end

Windows Communication Foundation (WCF)

Collapse this imageExpand this image
assets folding start expanded
In the .NET Framework 4.5, WCF introduces a new method named "Reflection Emit" that generates the XML Serialization assembly. This method enables scenarios where the client application cannot write a temporary serialization assembly to disk. In some cases, this may cause issues after you upgrade to the .NET Framework 4.5.

The ability to opt out of this new behavior and revert to the WCF 4 XML serialization is documented in the following KB article:
2748720 Serialization or deserialization failures when you run existing XML serialization code in WCF 4.5
In a .NET Framework 4.5-based application, you can use the following code as the workaround that is described in KB 2748720:

<configuration>    <system.xml.serialization>        <xmlSerializer useLegacySerializerGeneration="true"/></system.xml.serialization><configuration>
Assume that you also use the same application.config file or web.config file to target both the .NET Framework 4 and the .NET Framework 4.5. In this situation, you encounter an exception that indicates the <xmlserializer> element cannot be recognized under the <system.xml.serialization> attribute.

For applications that try to target the .NET Framework 4 and the .NET Framework 4.5, we recommend that you apply the following <appSetting> configuration to a replace the previous switch:

<appSettings>    <add key="System:Xml:Serialization:UseLegacySerializerGeneration" value="true"/></appSettings>
Notes
  • Both switches work in the .NET Framework 4.5. However, the <appSettings> switch will make sure that the app.config file or web.config file can be transferred between the .NET Framework 4.0 and the .NET Framework 4.5. If you apply both the switches, only the <appSettings> switch will be used.
  • When a .NET Framework 4.0 application uses the "UseLegacySerializerGeneration" configuration element, the application returns a configuration error.

This update also resolves the following issues after you upgrade to the .NET Framework 4.5.

Issue 1
When you deserialize simple arrays that are serialized as an XmlAttribute, the operation fails. Additionally, you receive the following error message:
System.XML.XmlException ‘EndElement’ is an invalid XmlNode Type.
After you upgrade to .NET Framework 4.5, IIS may return an HTTP400 - 'Bad Request' error.

Issue 2
Consider the following scenario:
  • A base class "A" and a derived class "B" try to serialize or deserialize an object of "B".
  • A virtual property is defined in "A" and is overridden by "B".
In this scenario, the serializer outputs the property that is defined in "A" instead of "B".
Collapse this imageExpand this image
assets folding end

Properties

Article ID: 2805221 - Last Review: May 14, 2013 - Revision: 1.0
Applies to
  • Microsoft .NET Framework 4.5, when used with:
    • Windows 7 Service Pack 1
    • Windows Server 2008 R2 Service Pack 1
    • Windows Server 2008 Service Pack 2
    • Windows Vista Service Pack 2
Keywords: 
kbfix atdownload kbsurveynew kbexpertiseadvanced KB2805221

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com