Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Update 4.0.2 for Microsoft .NET Framework 4 – Runtime Update


View products that this article applies to.

Introduction

Update 4.0.2 for Microsoft .NET Framework 4 is now available. This update contains some new features that are based on specific requests from some top customer and on some important .NET Framework scenarios. This update also contains some important software updates for ClickOnce and for .NET Framework 4-based Windows Presentation Foundation (WPF) applications.

Notes
  • This update release updates only the runtime files for the Microsoft .NET Framework 4. For more information about the details of this update, see the "More Information" section.
  • This update contains all the runtime changes from the following update:
    2478063  Update 4.0.1 for Microsoft .NET Framework 4 - Runtime Update
    Therefore, this update is a cumulative update. Any application built for the .NET Framework 4.01 can run on a computer that has the .NET Framework 4 and the Update 4.0.2 runtime installed. We recommend that applications built for the Microsoft .NET Framework 4.0.1 be upgraded to the Update 4.0.2 runtime. However, this upgrade is optional.
  • We do not support any application that this update was used to build on any prerelease version of the .NET Framework 4 such as a Beta. Additionally, we recommend that any such application be upgraded to at least the Microsoft .NET Framework 4 RTM.

↑ Back to the top


More Information

Features that are introduced by this update

AlwaysOn support in SqlClient

In SQL Server code named "Denali," AlwaysOn is introduced as a High Availability topology. With this topology, secondary nodes can be accessed by read workloads. To do this, secondary nodes must only accept read-only connections. This operation requires a special intent lock to be passed together with a connection. To meet this requirement, and also to keep the connectivity information decoupled from the application, SqlClient includes the following new connection string keywords:
  • ApplicationIntent
    This keyword is passed as a connection string parameter. When this keyword is used, applications can directly connect to a read-only secondary server, or can be automatically redirected to secondary servers in an availability group.
  • MultiSubnetFailover
    This keyword supports fast failover connectivity for geographically-distributed topologies.
For more information about AlwaysOn, visit the following Microsoft website:

SQL Server Express Local Database Runtime support in SqlClient

SQL Server Express LocalDB is a new installation and execution mode of SQL Server Express that runs as a stand-alone executable and that requires a minimum amount of effort for installation. When developers connect to database files directly, a transparent SQL Server Express infrastructure runs in the background. For current SQL Server technology, LocalDB offers a Run As Normal User (RANU) user instance in a smaller package.

SqlClient adds support for SQL Server Express LocalDB connectivity that can be used by a developer.

For more information about SQL Server Express LocalDB, visit the following Microsoft website:


A new DbProviderFactories.GetFactory overload

With this overload, you can use a valid DbConnection object to obtain a DbProviderFactory object.

For more information about the DbProviderFactory methods, visit the following MSDN website:
For more information about the supported features from Update 4.0.1, click the following article number to view the article in the Microsoft Knowledge Base:

2478063 Microsoft .NET Framework 4 Platform Update 1 - Runtime Update

Issues that this update resolves

Issue 1

Consider the following scenario:

  • You create a .NET Framework application that targets the Microsoft .NET Framework 4.0.1 or the Microsoft .NET Framework 4.0.1 Client Profile.
  • You publish the application.
  • You install the application. ClickOnce is used to install the application. 
In this scenario, the installation fails, and you receive an error message that contains the following text:
Version 4.0.1 is required
Issue 2
Consider the following scenario:
  • You create a Windows Presentation Foundation (WPF) application.
  • You set a window to be a child window of two windows. 
In this scenario, WPF reports incorrect child-window dimensions.

Note After you install this update, WPF returns the correct dimensions of the child window.

Visual Studio 2010 support

To use any new feature installed by this update, install the following update, and then develop applications in Microsoft Visual Studio 2010 Service Pack 1 (SP1):
2544525 Visual Studio 2010 SP1 – Design-time Update for Microsoft .NET Framework 4.0.2

Note This update installs a multi-targeting pack and other supporting files for the development environment. After you install these files, you can develop applications for the .NET Framework 4.0.2.

Download information

The update is available for download from the following Microsoft Download Center website:
Download Download the update 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 install this update, you must have the following software installed:
  • Windows Installer 3.1 or a later version of Windows Installer.

    To obtain the latest version of Windows Installer, visit the following Microsoft website:
  • The Microsoft .NET Framework 4, or the Microsoft .NET Framework 4 Client Profile
Note Update 4.02– Runtime Update is a targetable framework and is built for the .NET Framework 4. This update is not a cumulative framework version.

Command-line switches for this update

For more information about the command-line switches for Windows Installer, visit the following Microsoft website:
227091 Command-Line Switches for the Microsoft Windows Installer Tool
For more information about Windows Installer, visit the following Microsoft website:

Restart requirement

You have to restart the computer after you install this update if the files that are being updated are locked or are being used when you install this update.

Known issues with this update

Symptoms
Consider the following scenario:
  • You create an ASP.NET Framework application in Microsoft Visual Studio 2010 Service Pack 1 (SP1) that targets the .NET Framework 4.0.2.
  • You deploy the application on a server. The server has the .NET Framework 4 and this update installed.
  • You try to access the application from a client computer.
In this scenario, you receive the following error message:
Description
: An error occurred during the processing of a configuration file that is required to service this request. Please review the specific error details here and change your configuration file appropriately.

Parser Error Message
: The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.

Source Error:

Line 2: <configuration>
Line 3: <system.web>
Line 4: <compilation debug="false" targetFramework=".NETFramework, version=v4.0.2" />
Line 5: </system.web>
Line 6: </configuration>

Cause
This issue occurs because the ASP.NET code cannot correctly parse the target framework version that is specified in the Web.config file.

Resolution
To resolve this issue, install update 2468871. 

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2468871 Update for the .NET Framework 4

Update replacement information

This update replaces update 2478063. 

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2478063 Microsoft .NET Framework 4 Platform Update 1 - Runtime Update


File information

The global version of this update uses a Microsoft Windows Installer package to install the update. The dates and the times for these files are listed in Coordinated Universal Time (UTC) in the following table. When you view the file information, the date 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
File nameFile versionFile sizeDateTime
PresentationCore.dll4.0.30319.2453,788,12828-Aug-201121:24
PresentationFramework.dll4.0.30319.2456,428,52028-Aug-201121:24
SqlWorkflowInstanceStoreLogic.sql51,06328-Aug-201113:37
SqlWorkflowInstanceStoreSchema.sql23,73928-Aug-201113:37
System.Activities.Core.Presentation.dll4.0.30319.245618,37628-Aug-201121:23
System.Activities.dll4.0.30319.2451,218,91228-Aug-201121:23
System.Activities.DurableInstancing.dll4.0.30319.245124,80828-Aug-201121:23
System.Activities.Presentation.dll4.0.30319.2451,558,90428-Aug-201121:23
System.ServiceModel.Activities.dll4.0.30319.245513,40028-Aug-201121:24
System.Data.dll4.0.30319.2453,018,07228-Aug-201121:22
System.Deployment.dll4.0.30319.245840,03228-Aug-201121:22
WindowsBase.dll4.0.30319.2451,368,92028-Aug-201121:25
PerfCounters.ini154,22228-Aug-201120:44
System.Data.resources.dll4.0.30319.245371,04828-Aug-201120:28
System.Data.resources.dll4.0.30319.245374,12028-Aug-201120:10
System.Data.resources.dll4.0.30319.245325,99228-Aug-201119:54
System.Data.resources.dll4.0.30319.245328,55228-Aug-201119:34
System.Data.resources.dll4.0.30319.245347,49628-Aug-201119:18
System.Data.resources.dll4.0.30319.245343,91228-Aug-201118:58
System.Data.resources.dll4.0.30319.245354,15228-Aug-201118:37
System.Data.resources.dll4.0.30319.245423,27228-Aug-201118:19
System.Data.resources.dll4.0.30319.245347,49628-Aug-201117:58
System.Data.resources.dll4.0.30319.245341,35228-Aug-201117:38
System.Data.resources.dll4.0.30319.245352,61628-Aug-201117:23
System.Data.resources.dll4.0.30319.245365,92828-Aug-201117:07
System.Data.resources.dll4.0.30319.245358,24828-Aug-201116:48
System.Data.resources.dll4.0.30319.245347,49628-Aug-201116:30
System.Data.resources.dll4.0.30319.245355,68828-Aug-201116:12
System.Data.resources.dll4.0.30319.245351,08028-Aug-201115:54
System.Data.resources.dll4.0.30319.245338,28028-Aug-201115:32
System.Data.resources.dll4.0.30319.245354,66428-Aug-201115:14
System.Data.resources.dll4.0.30319.245344,93628-Aug-201114:58
System.Data.resources.dll4.0.30319.245348,52028-Aug-201114:42
System.Data.resources.dll4.0.30319.245407,91228-Aug-201114:23
System.Data.resources.dll4.0.30319.245341,35228-Aug-201114:05
System.Data.resources.dll4.0.30319.245342,37628-Aug-201113:45

For all supported x64-based versions of Windows
File nameFile versionFile sizeDateTime
PresentationCore.dll4.0.30319.2453,824,48029-Aug-201105:52
PresentationCore.dll4.0.30319.2453,788,12828-Aug-201121:24
PresentationFramework.dll4.0.30319.2456,428,52028-Aug-201121:24
SqlWorkflowInstanceStoreLogic.sql51,06328-Aug-201122:15
SqlWorkflowInstanceStoreLogic.sql51,06328-Aug-201113:37
SqlWorkflowInstanceStoreSchema.sql23,73928-Aug-201122:15
SqlWorkflowInstanceStoreSchema.sql23,73928-Aug-201113:37
System.Activities.Core.Presentation.dll4.0.30319.245618,37628-Aug-201121:23
System.Activities.dll4.0.30319.2451,218,91228-Aug-201121:23
System.Activities.DurableInstancing.dll4.0.30319.245124,80828-Aug-201121:23
System.Activities.Presentation.dll4.0.30319.2451,558,90428-Aug-201121:23
System.ServiceModel.Activities.dll4.0.30319.245513,40028-Aug-201121:24
System.Data.dll4.0.30319.2453,163,48029-Aug-201105:51
System.Data.dll4.0.30319.2453,018,07228-Aug-201121:22
System.Deployment.dll4.0.30319.245840,03228-Aug-201121:22
WindowsBase.dll4.0.30319.2451,368,92028-Aug-201121:25
PerfCounters.ini154,22228-Aug-201120:44
System.Data.resources.dll4.0.30319.245371,04829-Aug-201105:09
System.Data.resources.dll4.0.30319.245371,04828-Aug-201120:28
System.Data.resources.dll4.0.30319.245374,12029-Aug-201104:48
System.Data.resources.dll4.0.30319.245374,12028-Aug-201120:10
System.Data.resources.dll4.0.30319.245325,99229-Aug-201104:27
System.Data.resources.dll4.0.30319.245325,99228-Aug-201119:54
System.Data.resources.dll4.0.30319.245328,55229-Aug-201104:08
System.Data.resources.dll4.0.30319.245328,55228-Aug-201119:34
System.Data.resources.dll4.0.30319.245347,49629-Aug-201103:48
System.Data.resources.dll4.0.30319.245347,49628-Aug-201119:18
System.Data.resources.dll4.0.30319.245343,91229-Aug-201103:27
System.Data.resources.dll4.0.30319.245343,91228-Aug-201118:58
System.Data.resources.dll4.0.30319.245354,15229-Aug-201103:06
System.Data.resources.dll4.0.30319.245354,15228-Aug-201118:37
System.Data.resources.dll4.0.30319.245423,27229-Aug-201102:49
System.Data.resources.dll4.0.30319.245423,27228-Aug-201118:19
System.Data.resources.dll4.0.30319.245347,49629-Aug-201102:25
System.Data.resources.dll4.0.30319.245347,49628-Aug-201117:58
System.Data.resources.dll4.0.30319.245341,35229-Aug-201102:05
System.Data.resources.dll4.0.30319.245341,35228-Aug-201117:38
System.Data.resources.dll4.0.30319.245352,61629-Aug-201101:50
System.Data.resources.dll4.0.30319.245352,61628-Aug-201117:23
System.Data.resources.dll4.0.30319.245365,92829-Aug-201101:32
System.Data.resources.dll4.0.30319.245365,92828-Aug-201117:07
System.Data.resources.dll4.0.30319.245358,24829-Aug-201101:10
System.Data.resources.dll4.0.30319.245358,24828-Aug-201116:48
System.Data.resources.dll4.0.30319.245347,49629-Aug-201100:52
System.Data.resources.dll4.0.30319.245347,49628-Aug-201116:30
System.Data.resources.dll4.0.30319.245355,68829-Aug-201100:32
System.Data.resources.dll4.0.30319.245355,68828-Aug-201116:12
System.Data.resources.dll4.0.30319.245351,08029-Aug-201100:18
System.Data.resources.dll4.0.30319.245351,08028-Aug-201115:54
System.Data.resources.dll4.0.30319.245338,28029-Aug-201100:00
System.Data.resources.dll4.0.30319.245338,28028-Aug-201115:32
System.Data.resources.dll4.0.30319.245354,66428-Aug-201123:44
System.Data.resources.dll4.0.30319.245354,66428-Aug-201115:14
System.Data.resources.dll4.0.30319.245344,93628-Aug-201123:27
System.Data.resources.dll4.0.30319.245344,93628-Aug-201114:58
System.Data.resources.dll4.0.30319.245348,52028-Aug-201123:11
System.Data.resources.dll4.0.30319.245348,52028-Aug-201114:42
System.Data.resources.dll4.0.30319.245407,91228-Aug-201122:53
System.Data.resources.dll4.0.30319.245407,91228-Aug-201114:23
System.Data.resources.dll4.0.30319.245341,35228-Aug-201122:37
System.Data.resources.dll4.0.30319.245341,35228-Aug-201114:05
System.Data.resources.dll4.0.30319.245342,37628-Aug-201122:20
System.Data.resources.dll4.0.30319.245342,37628-Aug-201113:45
For all supported IA-64based versions of Windows
File nameFile versionFile sizeDateTime
PresentationCore.dll4.0.30319.2453,788,12828-Aug-201121:24
PresentationFramework.dll4.0.30319.2456,428,52028-Aug-201121:24
SqlWorkflowInstanceStoreLogic.sql51,06329-Aug-201107:09
SqlWorkflowInstanceStoreLogic.sql51,06328-Aug-201113:37
SqlWorkflowInstanceStoreSchema.sql23,73929-Aug-201107:09
SqlWorkflowInstanceStoreSchema.sql23,73928-Aug-201113:37
System.Activities.Core.Presentation.dll4.0.30319.245618,37628-Aug-201121:23
System.Activities.dll4.0.30319.2451,218,91228-Aug-201121:23
System.Activities.DurableInstancing.dll4.0.30319.245124,80828-Aug-201121:23
System.Activities.Presentation.dll4.0.30319.2451,558,90428-Aug-201121:23
System.ServiceModel.Activities.dll4.0.30319.245513,40028-Aug-201121:24
System.Data.dll4.0.30319.2453,347,28829-Aug-201114:27
System.Data.dll4.0.30319.2453,018,07228-Aug-201121:22
System.Deployment.dll4.0.30319.245840,03228-Aug-201121:22
WindowsBase.dll4.0.30319.2451,368,92028-Aug-201121:25
PerfCounters.ini154,22228-Aug-201120:44
System.Data.resources.dll4.0.30319.245371,04829-Aug-201113:54
System.Data.resources.dll4.0.30319.245371,04828-Aug-201120:28
System.Data.resources.dll4.0.30319.245374,12029-Aug-201113:38
System.Data.resources.dll4.0.30319.245374,12028-Aug-201120:10
System.Data.resources.dll4.0.30319.245325,99229-Aug-201113:23
System.Data.resources.dll4.0.30319.245325,99228-Aug-201119:54
System.Data.resources.dll4.0.30319.245328,55229-Aug-201113:05
System.Data.resources.dll4.0.30319.245328,55228-Aug-201119:34
System.Data.resources.dll4.0.30319.245347,49629-Aug-201112:47
System.Data.resources.dll4.0.30319.245347,49628-Aug-201119:18
System.Data.resources.dll4.0.30319.245343,91229-Aug-201112:29
System.Data.resources.dll4.0.30319.245343,91228-Aug-201118:58
System.Data.resources.dll4.0.30319.245354,15229-Aug-201112:12
System.Data.resources.dll4.0.30319.245354,15228-Aug-201118:37
System.Data.resources.dll4.0.30319.245423,27229-Aug-201111:52
System.Data.resources.dll4.0.30319.245423,27228-Aug-201118:19
System.Data.resources.dll4.0.30319.245347,49629-Aug-201111:33
System.Data.resources.dll4.0.30319.245347,49628-Aug-201117:58
System.Data.resources.dll4.0.30319.245341,35229-Aug-201111:15
System.Data.resources.dll4.0.30319.245341,35228-Aug-201117:38
System.Data.resources.dll4.0.30319.245352,61629-Aug-201110:52
System.Data.resources.dll4.0.30319.245352,61628-Aug-201117:23
System.Data.resources.dll4.0.30319.245365,92829-Aug-201110:34
System.Data.resources.dll4.0.30319.245365,92828-Aug-201117:07
System.Data.resources.dll4.0.30319.245358,24829-Aug-201110:16
System.Data.resources.dll4.0.30319.245358,24828-Aug-201116:48
System.Data.resources.dll4.0.30319.245347,49629-Aug-201109:59
System.Data.resources.dll4.0.30319.245347,49628-Aug-201116:30
System.Data.resources.dll4.0.30319.245355,68829-Aug-201109:41
System.Data.resources.dll4.0.30319.245355,68828-Aug-201116:12
System.Data.resources.dll4.0.30319.245351,08029-Aug-201109:25
System.Data.resources.dll4.0.30319.245351,08028-Aug-201115:54
System.Data.resources.dll4.0.30319.245338,28029-Aug-201109:09
System.Data.resources.dll4.0.30319.245338,28028-Aug-201115:32
System.Data.resources.dll4.0.30319.245354,66429-Aug-201108:51
System.Data.resources.dll4.0.30319.245354,66428-Aug-201115:14
System.Data.resources.dll4.0.30319.245344,93629-Aug-201108:30
System.Data.resources.dll4.0.30319.245344,93628-Aug-201114:58
System.Data.resources.dll4.0.30319.245348,52029-Aug-201108:14
System.Data.resources.dll4.0.30319.245348,52028-Aug-201114:42
System.Data.resources.dll4.0.30319.245407,91229-Aug-201107:56
System.Data.resources.dll4.0.30319.245407,91228-Aug-201114:23
System.Data.resources.dll4.0.30319.245341,35229-Aug-201107:35
System.Data.resources.dll4.0.30319.245341,35228-Aug-201114:05
System.Data.resources.dll4.0.30319.245342,37629-Aug-201107:14
System.Data.resources.dll4.0.30319.245342,37628-Aug-201113:45

↑ Back to the top


Keywords: kb, kbqfe, atdownload, kbexpertiseadvanced, kbsurveynew, kbfix

↑ Back to the top

Article Info
Article ID : 2544514
Revision : 1
Created on : 1/7/2017
Published on : 6/14/2012
Exists online : False
Views : 435