Applies ToMicrosoft Windows XP Service Pack 3 Microsoft Windows XP Professional Microsoft Windows XP Home Edition Microsoft Windows Server 2003 Service Pack 2 Windows Server 2008 Service Pack 2 Windows Server 2008 Foundation Windows Server 2008 Datacenter Windows Server 2008 Standard Windows Server 2008 Enterprise Windows Vista Service Pack 2 Windows Vista Business Windows Vista Enterprise Windows Vista Home Basic Windows Vista Home Premium Windows Vista Starter Windows Vista Ultimate Windows 7 Service Pack 1 Windows 7 Enterprise Windows 7 Home Basic Windows 7 Home Premium Windows 7 Professional Windows 7 Ultimate Windows 7 Starter Windows Server 2008 R2 Service Pack 1 Windows Server 2008 R2 Enterprise Windows Server 2008 R2 Datacenter Windows Server 2008 R2 Foundation Windows 7 Home Basic Windows 7 Home Premium Windows 7 Professional Windows 7 Ultimate Windows 7 Enterprise Windows Server 2008 R2 Datacenter Windows Server 2008 R2 Enterprise Windows Server 2008 R2 Foundation Windows Server 2008 R2 Standard

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 UpdateTherefore, 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.

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:

  • ApplicationIntentThis 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.

  • MultiSubnetFailoverThis keyword supports fast failover connectivity for geographically-distributed topologies.

For more information about AlwaysOn, visit the following Microsoft website:

General information about AlwaysOn

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:

General information about SQL Server Express LocalDB

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:

General information about the DbProviderFactories methodsFor 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 1Consider 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 2Consider 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.2Note 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:DownloadDownload 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:

    Download Windows Installer 4.5 Redistributable

  • 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 ToolFor more information about Windows Installer, visit the following Microsoft website:

General information about Windows Installer

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 name

File version

File size

Date

Time

PresentationCore.dll

4.0.30319.245

3,788,128

28-Aug-2011

21:24

PresentationFramework.dll

4.0.30319.245

6,428,520

28-Aug-2011

21:24

SqlWorkflowInstanceStoreLogic.sql

51,063

28-Aug-2011

13:37

SqlWorkflowInstanceStoreSchema.sql

23,739

28-Aug-2011

13:37

System.Activities.Core.Presentation.dll

4.0.30319.245

618,376

28-Aug-2011

21:23

System.Activities.dll

4.0.30319.245

1,218,912

28-Aug-2011

21:23

System.Activities.DurableInstancing.dll

4.0.30319.245

124,808

28-Aug-2011

21:23

System.Activities.Presentation.dll

4.0.30319.245

1,558,904

28-Aug-2011

21:23

System.ServiceModel.Activities.dll

4.0.30319.245

513,400

28-Aug-2011

21:24

System.Data.dll

4.0.30319.245

3,018,072

28-Aug-2011

21:22

System.Deployment.dll

4.0.30319.245

840,032

28-Aug-2011

21:22

WindowsBase.dll

4.0.30319.245

1,368,920

28-Aug-2011

21:25

PerfCounters.ini

154,222

28-Aug-2011

20:44

System.Data.resources.dll

4.0.30319.245

371,048

28-Aug-2011

20:28

System.Data.resources.dll

4.0.30319.245

374,120

28-Aug-2011

20:10

System.Data.resources.dll

4.0.30319.245

325,992

28-Aug-2011

19:54

System.Data.resources.dll

4.0.30319.245

328,552

28-Aug-2011

19:34

System.Data.resources.dll

4.0.30319.245

347,496

28-Aug-2011

19:18

System.Data.resources.dll

4.0.30319.245

343,912

28-Aug-2011

18:58

System.Data.resources.dll

4.0.30319.245

354,152

28-Aug-2011

18:37

System.Data.resources.dll

4.0.30319.245

423,272

28-Aug-2011

18:19

System.Data.resources.dll

4.0.30319.245

347,496

28-Aug-2011

17:58

System.Data.resources.dll

4.0.30319.245

341,352

28-Aug-2011

17:38

System.Data.resources.dll

4.0.30319.245

352,616

28-Aug-2011

17:23

System.Data.resources.dll

4.0.30319.245

365,928

28-Aug-2011

17:07

System.Data.resources.dll

4.0.30319.245

358,248

28-Aug-2011

16:48

System.Data.resources.dll

4.0.30319.245

347,496

28-Aug-2011

16:30

System.Data.resources.dll

4.0.30319.245

355,688

28-Aug-2011

16:12

System.Data.resources.dll

4.0.30319.245

351,080

28-Aug-2011

15:54

System.Data.resources.dll

4.0.30319.245

338,280

28-Aug-2011

15:32

System.Data.resources.dll

4.0.30319.245

354,664

28-Aug-2011

15:14

System.Data.resources.dll

4.0.30319.245

344,936

28-Aug-2011

14:58

System.Data.resources.dll

4.0.30319.245

348,520

28-Aug-2011

14:42

System.Data.resources.dll

4.0.30319.245

407,912

28-Aug-2011

14:23

System.Data.resources.dll

4.0.30319.245

341,352

28-Aug-2011

14:05

System.Data.resources.dll

4.0.30319.245

342,376

28-Aug-2011

13:45

For all supported x64-based versions of Windows

File name

File version

File size

Date

Time

PresentationCore.dll

4.0.30319.245

3,824,480

29-Aug-2011

05:52

PresentationCore.dll

4.0.30319.245

3,788,128

28-Aug-2011

21:24

PresentationFramework.dll

4.0.30319.245

6,428,520

28-Aug-2011

21:24

SqlWorkflowInstanceStoreLogic.sql

51,063

28-Aug-2011

22:15

SqlWorkflowInstanceStoreLogic.sql

51,063

28-Aug-2011

13:37

SqlWorkflowInstanceStoreSchema.sql

23,739

28-Aug-2011

22:15

SqlWorkflowInstanceStoreSchema.sql

23,739

28-Aug-2011

13:37

System.Activities.Core.Presentation.dll

4.0.30319.245

618,376

28-Aug-2011

21:23

System.Activities.dll

4.0.30319.245

1,218,912

28-Aug-2011

21:23

System.Activities.DurableInstancing.dll

4.0.30319.245

124,808

28-Aug-2011

21:23

System.Activities.Presentation.dll

4.0.30319.245

1,558,904

28-Aug-2011

21:23

System.ServiceModel.Activities.dll

4.0.30319.245

513,400

28-Aug-2011

21:24

System.Data.dll

4.0.30319.245

3,163,480

29-Aug-2011

05:51

System.Data.dll

4.0.30319.245

3,018,072

28-Aug-2011

21:22

System.Deployment.dll

4.0.30319.245

840,032

28-Aug-2011

21:22

WindowsBase.dll

4.0.30319.245

1,368,920

28-Aug-2011

21:25

PerfCounters.ini

154,222

28-Aug-2011

20:44

System.Data.resources.dll

4.0.30319.245

371,048

29-Aug-2011

05:09

System.Data.resources.dll

4.0.30319.245

371,048

28-Aug-2011

20:28

System.Data.resources.dll

4.0.30319.245

374,120

29-Aug-2011

04:48

System.Data.resources.dll

4.0.30319.245

374,120

28-Aug-2011

20:10

System.Data.resources.dll

4.0.30319.245

325,992

29-Aug-2011

04:27

System.Data.resources.dll

4.0.30319.245

325,992

28-Aug-2011

19:54

System.Data.resources.dll

4.0.30319.245

328,552

29-Aug-2011

04:08

System.Data.resources.dll

4.0.30319.245

328,552

28-Aug-2011

19:34

System.Data.resources.dll

4.0.30319.245

347,496

29-Aug-2011

03:48

System.Data.resources.dll

4.0.30319.245

347,496

28-Aug-2011

19:18

System.Data.resources.dll

4.0.30319.245

343,912

29-Aug-2011

03:27

System.Data.resources.dll

4.0.30319.245

343,912

28-Aug-2011

18:58

System.Data.resources.dll

4.0.30319.245

354,152

29-Aug-2011

03:06

System.Data.resources.dll

4.0.30319.245

354,152

28-Aug-2011

18:37

System.Data.resources.dll

4.0.30319.245

423,272

29-Aug-2011

02:49

System.Data.resources.dll

4.0.30319.245

423,272

28-Aug-2011

18:19

System.Data.resources.dll

4.0.30319.245

347,496

29-Aug-2011

02:25

System.Data.resources.dll

4.0.30319.245

347,496

28-Aug-2011

17:58

System.Data.resources.dll

4.0.30319.245

341,352

29-Aug-2011

02:05

System.Data.resources.dll

4.0.30319.245

341,352

28-Aug-2011

17:38

System.Data.resources.dll

4.0.30319.245

352,616

29-Aug-2011

01:50

System.Data.resources.dll

4.0.30319.245

352,616

28-Aug-2011

17:23

System.Data.resources.dll

4.0.30319.245

365,928

29-Aug-2011

01:32

System.Data.resources.dll

4.0.30319.245

365,928

28-Aug-2011

17:07

System.Data.resources.dll

4.0.30319.245

358,248

29-Aug-2011

01:10

System.Data.resources.dll

4.0.30319.245

358,248

28-Aug-2011

16:48

System.Data.resources.dll

4.0.30319.245

347,496

29-Aug-2011

00:52

System.Data.resources.dll

4.0.30319.245

347,496

28-Aug-2011

16:30

System.Data.resources.dll

4.0.30319.245

355,688

29-Aug-2011

00:32

System.Data.resources.dll

4.0.30319.245

355,688

28-Aug-2011

16:12

System.Data.resources.dll

4.0.30319.245

351,080

29-Aug-2011

00:18

System.Data.resources.dll

4.0.30319.245

351,080

28-Aug-2011

15:54

System.Data.resources.dll

4.0.30319.245

338,280

29-Aug-2011

00:00

System.Data.resources.dll

4.0.30319.245

338,280

28-Aug-2011

15:32

System.Data.resources.dll

4.0.30319.245

354,664

28-Aug-2011

23:44

System.Data.resources.dll

4.0.30319.245

354,664

28-Aug-2011

15:14

System.Data.resources.dll

4.0.30319.245

344,936

28-Aug-2011

23:27

System.Data.resources.dll

4.0.30319.245

344,936

28-Aug-2011

14:58

System.Data.resources.dll

4.0.30319.245

348,520

28-Aug-2011

23:11

System.Data.resources.dll

4.0.30319.245

348,520

28-Aug-2011

14:42

System.Data.resources.dll

4.0.30319.245

407,912

28-Aug-2011

22:53

System.Data.resources.dll

4.0.30319.245

407,912

28-Aug-2011

14:23

System.Data.resources.dll

4.0.30319.245

341,352

28-Aug-2011

22:37

System.Data.resources.dll

4.0.30319.245

341,352

28-Aug-2011

14:05

System.Data.resources.dll

4.0.30319.245

342,376

28-Aug-2011

22:20

System.Data.resources.dll

4.0.30319.245

342,376

28-Aug-2011

13:45

For all supported IA-64–based versions of Windows

File name

File version

File size

Date

Time

PresentationCore.dll

4.0.30319.245

3,788,128

28-Aug-2011

21:24

PresentationFramework.dll

4.0.30319.245

6,428,520

28-Aug-2011

21:24

SqlWorkflowInstanceStoreLogic.sql

51,063

29-Aug-2011

07:09

SqlWorkflowInstanceStoreLogic.sql

51,063

28-Aug-2011

13:37

SqlWorkflowInstanceStoreSchema.sql

23,739

29-Aug-2011

07:09

SqlWorkflowInstanceStoreSchema.sql

23,739

28-Aug-2011

13:37

System.Activities.Core.Presentation.dll

4.0.30319.245

618,376

28-Aug-2011

21:23

System.Activities.dll

4.0.30319.245

1,218,912

28-Aug-2011

21:23

System.Activities.DurableInstancing.dll

4.0.30319.245

124,808

28-Aug-2011

21:23

System.Activities.Presentation.dll

4.0.30319.245

1,558,904

28-Aug-2011

21:23

System.ServiceModel.Activities.dll

4.0.30319.245

513,400

28-Aug-2011

21:24

System.Data.dll

4.0.30319.245

3,347,288

29-Aug-2011

14:27

System.Data.dll

4.0.30319.245

3,018,072

28-Aug-2011

21:22

System.Deployment.dll

4.0.30319.245

840,032

28-Aug-2011

21:22

WindowsBase.dll

4.0.30319.245

1,368,920

28-Aug-2011

21:25

PerfCounters.ini

154,222

28-Aug-2011

20:44

System.Data.resources.dll

4.0.30319.245

371,048

29-Aug-2011

13:54

System.Data.resources.dll

4.0.30319.245

371,048

28-Aug-2011

20:28

System.Data.resources.dll

4.0.30319.245

374,120

29-Aug-2011

13:38

System.Data.resources.dll

4.0.30319.245

374,120

28-Aug-2011

20:10

System.Data.resources.dll

4.0.30319.245

325,992

29-Aug-2011

13:23

System.Data.resources.dll

4.0.30319.245

325,992

28-Aug-2011

19:54

System.Data.resources.dll

4.0.30319.245

328,552

29-Aug-2011

13:05

System.Data.resources.dll

4.0.30319.245

328,552

28-Aug-2011

19:34

System.Data.resources.dll

4.0.30319.245

347,496

29-Aug-2011

12:47

System.Data.resources.dll

4.0.30319.245

347,496

28-Aug-2011

19:18

System.Data.resources.dll

4.0.30319.245

343,912

29-Aug-2011

12:29

System.Data.resources.dll

4.0.30319.245

343,912

28-Aug-2011

18:58

System.Data.resources.dll

4.0.30319.245

354,152

29-Aug-2011

12:12

System.Data.resources.dll

4.0.30319.245

354,152

28-Aug-2011

18:37

System.Data.resources.dll

4.0.30319.245

423,272

29-Aug-2011

11:52

System.Data.resources.dll

4.0.30319.245

423,272

28-Aug-2011

18:19

System.Data.resources.dll

4.0.30319.245

347,496

29-Aug-2011

11:33

System.Data.resources.dll

4.0.30319.245

347,496

28-Aug-2011

17:58

System.Data.resources.dll

4.0.30319.245

341,352

29-Aug-2011

11:15

System.Data.resources.dll

4.0.30319.245

341,352

28-Aug-2011

17:38

System.Data.resources.dll

4.0.30319.245

352,616

29-Aug-2011

10:52

System.Data.resources.dll

4.0.30319.245

352,616

28-Aug-2011

17:23

System.Data.resources.dll

4.0.30319.245

365,928

29-Aug-2011

10:34

System.Data.resources.dll

4.0.30319.245

365,928

28-Aug-2011

17:07

System.Data.resources.dll

4.0.30319.245

358,248

29-Aug-2011

10:16

System.Data.resources.dll

4.0.30319.245

358,248

28-Aug-2011

16:48

System.Data.resources.dll

4.0.30319.245

347,496

29-Aug-2011

09:59

System.Data.resources.dll

4.0.30319.245

347,496

28-Aug-2011

16:30

System.Data.resources.dll

4.0.30319.245

355,688

29-Aug-2011

09:41

System.Data.resources.dll

4.0.30319.245

355,688

28-Aug-2011

16:12

System.Data.resources.dll

4.0.30319.245

351,080

29-Aug-2011

09:25

System.Data.resources.dll

4.0.30319.245

351,080

28-Aug-2011

15:54

System.Data.resources.dll

4.0.30319.245

338,280

29-Aug-2011

09:09

System.Data.resources.dll

4.0.30319.245

338,280

28-Aug-2011

15:32

System.Data.resources.dll

4.0.30319.245

354,664

29-Aug-2011

08:51

System.Data.resources.dll

4.0.30319.245

354,664

28-Aug-2011

15:14

System.Data.resources.dll

4.0.30319.245

344,936

29-Aug-2011

08:30

System.Data.resources.dll

4.0.30319.245

344,936

28-Aug-2011

14:58

System.Data.resources.dll

4.0.30319.245

348,520

29-Aug-2011

08:14

System.Data.resources.dll

4.0.30319.245

348,520

28-Aug-2011

14:42

System.Data.resources.dll

4.0.30319.245

407,912

29-Aug-2011

07:56

System.Data.resources.dll

4.0.30319.245

407,912

28-Aug-2011

14:23

System.Data.resources.dll

4.0.30319.245

341,352

29-Aug-2011

07:35

System.Data.resources.dll

4.0.30319.245

341,352

28-Aug-2011

14:05

System.Data.resources.dll

4.0.30319.245

342,376

29-Aug-2011

07:14

System.Data.resources.dll

4.0.30319.245

342,376

28-Aug-2011

13:45

¿Necesita más ayuda?

¿Quiere más opciones?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.