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.

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


View products that this article applies to.

Introduction

An update for the .NET Framework 4.5 is available. This update fixes some reliability, compatibility, stability, and performance issues. For more information about the issues that this update resolves, see the "Issues that this update resolves" section.

↑ Back to the top


More Information

Download Information

Windows Update

This update is available from Windows Update.

Microsoft Download Center

To download the update, go to the following Microsoft Download Center website:

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.

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 all supported 32-bit versions of the .NET Framework 4.5 for LDR service branch
File nameFile versionFile sizeDateTime
aspnet_wp.exe4.0.30319.1905044,00828-Nov-201210:31
clr.dll4.0.30319.190506,876,60828-Nov-201210:31
clrjit.dll4.0.30319.19050451,52828-Nov-201210:31
CORPerfMonExt.dll4.0.30319.19050131,57628-Nov-201210:31
Microsoft.Xaml.targets19,84828-Nov-201210:31
mscordacwks.dll4.0.30319.190501,299,42428-Nov-201210:31
mscordbi.dll4.0.30319.190501,096,65628-Nov-201210:31
mscorlib.dll4.0.30319.190505,171,15228-Nov-201209:08
PresentationCore.dll4.0.30319.190503,224,57628-Nov-201209:08
PresentationFramework.dll4.0.30319.190506,187,03228-Nov-201209:08
SOS.dll4.0.30319.19050746,94428-Nov-201210:31
System.Activities.dll4.0.30319.190501,573,89628-Nov-201209:08
System.Data.Entity.dll4.0.30319.190504,163,06428-Nov-201209:08
System.IdentityModel.dll4.0.30319.190501,084,92828-Nov-201209:08
System.Printing.dll4.0.30319.19050342,01628-Nov-201209:08
System.Runtime.Serialization.dll4.0.30319.190501,051,68028-Nov-201209:08
System.ServiceModel.Activation.dll4.0.30319.19050203,30428-Nov-201209:08
System.ServiceModel.Channels.dll4.0.30319.19050158,75228-Nov-201209:08
System.ServiceModel.Discovery.dll4.0.30319.19050312,36028-Nov-201209:08
System.ServiceModel.dll4.0.30319.190506,368,76828-Nov-201209:08
System.Data.dll4.0.30319.190503,174,36828-Nov-201209:08
System.Data.SqlXml.dll4.0.30319.19050742,92028-Nov-201209:08
System.dll4.0.30319.190503,449,30428-Nov-201209:08
System.Web.dll4.0.30319.190505,418,47228-Nov-201209:08
System.Windows.Forms.dll4.0.30319.190504,806,65628-Nov-201209:08
System.Xml.dll4.0.30319.190502,688,47228-Nov-201209:08
webengine.dll4.0.30319.1905024,53628-Nov-201210:31
webengine4.dll4.0.30319.19050504,79228-Nov-201210:31
WindowsBase.dll4.0.30319.190501,237,48828-Nov-201209:08


For all supported 32-bit versions of the .NET Framework 4.5 for GDR service branch
File nameFile versionFile sizeDateTime
aspnet_wp.exe4.0.30319.1803443,99228-Nov-201210:47
clr.dll4.0.30319.180346,876,60828-Nov-201210:47
clrjit.dll4.0.30319.18034451,52828-Nov-201210:47
CORPerfMonExt.dll4.0.30319.18034131,56028-Nov-201210:47
Microsoft.Xaml.targets19,84828-Nov-201210:47
mscordacwks.dll4.0.30319.180341,299,42428-Nov-201210:47
mscordbi.dll4.0.30319.180341,096,65628-Nov-201210:47
mscorlib.dll4.0.30319.180345,171,16828-Nov-201209:12
PresentationCore.dll4.0.30319.180343,224,56028-Nov-201209:12
PresentationFramework.dll4.0.30319.180346,187,01628-Nov-201209:12
SOS.dll4.0.30319.18034746,94428-Nov-201210:47
System.Activities.dll4.0.30319.180341,573,88028-Nov-201209:12
System.Data.Entity.dll4.0.30319.180344,163,08028-Nov-201209:12
System.IdentityModel.dll4.0.30319.180341,084,94428-Nov-201209:12
System.Printing.dll4.0.30319.18034342,00028-Nov-201209:12
System.Runtime.Serialization.dll4.0.30319.180341,051,18428-Nov-201209:12
System.ServiceModel.Activation.dll4.0.30319.18034203,32028-Nov-201209:12
System.ServiceModel.Channels.dll4.0.30319.18034158,25628-Nov-201209:12
System.ServiceModel.Discovery.dll4.0.30319.18034312,37628-Nov-201209:12
System.ServiceModel.dll4.0.30319.180346,368,25628-Nov-201209:12
System.Data.dll4.0.30319.180343,174,38428-Nov-201209:12
System.Data.SqlXml.dll4.0.30319.18034742,92028-Nov-201209:12
System.dll4.0.30319.180343,449,30428-Nov-201209:12
System.Web.dll4.0.30319.180345,418,45628-Nov-201209:12
System.Windows.Forms.dll4.0.30319.180344,806,67228-Nov-201209:12
System.Xml.dll4.0.30319.180342,688,47228-Nov-201209:12
webengine.dll4.0.30319.1803424,53628-Nov-201210:47
webengine4.dll4.0.30319.18034504,80828-Nov-201210:47
WindowsBase.dll4.0.30319.180341,237,47228-Nov-201209:12


For all supported 64-bit versions of the .NET Framework 4.5 for LDR service branch
File nameFile versionFile sizeDateTime
aspnet_wp.exe4.0.30319.1905048,60028-Nov-201210:49
aspnet_wp.exe4.0.30319.1905044,00828-Nov-201210:31
clr.dll4.0.30319.190509,804,22428-Nov-201210:49
clr.dll4.0.30319.190506,876,60828-Nov-201210:31
clrjit.dll4.0.30319.190501,236,93628-Nov-201210:49
clrjit.dll4.0.30319.19050451,52828-Nov-201210:31
CORPerfMonExt.dll4.0.30319.19050157,16028-Nov-201210:49
CORPerfMonExt.dll4.0.30319.19050131,57628-Nov-201210:31
Microsoft.Xaml.targets19,84828-Nov-201210:49
Microsoft.Xaml.targets19,84828-Nov-201210:31
mscordacwks.dll4.0.30319.190501,742,81628-Nov-201210:49
mscordacwks.dll4.0.30319.190501,299,42428-Nov-201210:31
mscordbi.dll4.0.30319.190501,497,04028-Nov-201210:49
mscordbi.dll4.0.30319.190501,096,65628-Nov-201210:31
mscorlib.dll4.0.30319.190505,120,46428-Nov-201210:49
mscorlib.dll4.0.30319.190505,171,15228-Nov-201209:08
PresentationCore.dll4.0.30319.190503,207,66428-Nov-201210:49
PresentationCore.dll4.0.30319.190503,224,57628-Nov-201209:08
PresentationFramework.dll4.0.30319.190506,187,03228-Nov-201209:08
SOS.dll4.0.30319.19050785,34428-Nov-201210:49
SOS.dll4.0.30319.19050746,94428-Nov-201210:31
System.Activities.dll4.0.30319.190501,573,89628-Nov-201209:08
System.Data.Entity.dll4.0.30319.190504,163,06428-Nov-201209:08
System.IdentityModel.dll4.0.30319.190501,084,92828-Nov-201209:08
System.Printing.dll4.0.30319.19050342,00028-Nov-201210:49
System.Printing.dll4.0.30319.19050342,01628-Nov-201209:08
System.Runtime.Serialization.dll4.0.30319.190501,051,68028-Nov-201209:08
System.ServiceModel.Activation.dll4.0.30319.19050203,30428-Nov-201209:08
System.ServiceModel.Channels.dll4.0.30319.19050158,75228-Nov-201209:08
System.ServiceModel.Discovery.dll4.0.30319.19050312,36028-Nov-201209:08
System.ServiceModel.dll4.0.30319.190506,368,76828-Nov-201209:08
System.Data.dll4.0.30319.190503,203,55228-Nov-201210:49
System.Data.dll4.0.30319.190503,174,36828-Nov-201209:08
System.Data.SqlXml.dll4.0.30319.19050742,92028-Nov-201209:08
System.dll4.0.30319.190503,449,30428-Nov-201209:08
System.Web.dll4.0.30319.190505,413,33628-Nov-201210:49
System.Web.dll4.0.30319.190505,418,47228-Nov-201209:08
System.Windows.Forms.dll4.0.30319.190504,806,65628-Nov-201209:08
System.XML.dll4.0.30319.190502,688,47228-Nov-201209:08
webengine.dll4.0.30319.1905026,58428-Nov-201210:49
webengine.dll4.0.30319.1905024,53628-Nov-201210:31
webengine4.dll4.0.30319.19050617,94428-Nov-201210:49
webengine4.dll4.0.30319.19050504,79228-Nov-201210:31
WindowsBase.dll4.0.30319.190501,237,48828-Nov-201209:08


For all supported 64-bit versions of the .NET Framework 4.5 for GDR service branch
File nameFile versionFile sizeDateTime
aspnet_wp.exe4.0.30319.1803448,60028-Nov-201211:05
aspnet_wp.exe4.0.30319.1803443,99228-Nov-201210:47
clr.dll4.0.30319.180349,802,19228-Nov-201211:05
clr.dll4.0.30319.180346,876,60828-Nov-201210:47
clrjit.dll4.0.30319.180341,236,93628-Nov-201211:05
clrjit.dll4.0.30319.18034451,52828-Nov-201210:47
CORPerfMonExt.dll4.0.30319.18034157,16028-Nov-201211:05
CORPerfMonExt.dll4.0.30319.18034131,56028-Nov-201210:47
Microsoft.Xaml.targets19,84828-Nov-201211:05
Microsoft.Xaml.targets19,84828-Nov-201210:47
mscordacwks.dll4.0.30319.180341,742,30428-Nov-201211:05
mscordacwks.dll4.0.30319.180341,299,42428-Nov-201210:47
mscordbi.dll4.0.30319.180341,497,04028-Nov-201211:05
mscordbi.dll4.0.30319.180341,096,65628-Nov-201210:47
mscorlib.dll4.0.30319.180345,120,48028-Nov-201211:05
mscorlib.dll4.0.30319.180345,171,16828-Nov-201209:12
PresentationCore.dll4.0.30319.180343,207,66428-Nov-201211:05
PresentationCore.dll4.0.30319.180343,224,56028-Nov-201209:12
PresentationFramework.dll4.0.30319.180346,187,01628-Nov-201209:12
SOS.dll4.0.30319.18034785,34428-Nov-201211:05
SOS.dll4.0.30319.18034746,94428-Nov-201210:47
System.Activities.dll4.0.30319.180341,573,88028-Nov-201209:12
System.Data.Entity.dll4.0.30319.180344,163,08028-Nov-201209:12
System.IdentityModel.dll4.0.30319.180341,084,94428-Nov-201209:12
System.Printing.dll4.0.30319.18034342,00028-Nov-201211:05
System.Printing.dll4.0.30319.18034342,00028-Nov-201209:12
System.Runtime.Serialization.dll4.0.30319.180341,051,18428-Nov-201209:12
System.ServiceModel.Activation.dll4.0.30319.18034203,32028-Nov-201209:12
System.ServiceModel.Channels.dll4.0.30319.18034158,25628-Nov-201209:12
System.ServiceModel.Discovery.dll4.0.30319.18034312,37628-Nov-201209:12
System.ServiceModel.dll4.0.30319.180346,368,25628-Nov-201209:12
System.Data.dll4.0.30319.180343,203,55228-Nov-201211:05
System.Data.dll4.0.30319.180343,174,38428-Nov-201209:12
System.Data.SqlXml.dll4.0.30319.18034742,92028-Nov-201209:12
System.dll4.0.30319.180343,449,30428-Nov-201209:12
System.Web.dll4.0.30319.180345,413,33628-Nov-201211:05
System.Web.dll4.0.30319.180345,418,45628-Nov-201209:12
System.Windows.Forms.dll4.0.30319.180344,806,67228-Nov-201209:12
System.XML.dll4.0.30319.180342,688,47228-Nov-201209:12
webengine.dll4.0.30319.1803426,60028-Nov-201211:05
webengine.dll4.0.30319.1803424,53628-Nov-201210:47
webengine4.dll4.0.30319.18034617,94428-Nov-201211:05
webengine4.dll4.0.30319.18034504,80828-Nov-201210:47
WindowsBase.dll4.0.30319.180341,237,47228-Nov-201209:12


↑ Back to the top


Issues that this update resolves

Windows Presentation Foundation (WPF)

Issue 1

Assume that you implement the ICommand interface, and then you perform one of the following operations:
  • You delegate the CanExecuteChanged event to a different object.
  • You raise the CanExecuteChanged event together with the sender parameter, and the parameter is set to a different object or to null.
In this situation, listeners of your CanExecuteChanged event do not receive the event. The following are typical symptoms of this behavior:
  • Buttons, MenuItems, or Hyperlinks do not change their IsEnabled state.
  • Buttons, MenuItems, or Hyperlinks do not respond to mouse-clicks or to keyboard input.
Issue 2

Consider the following scenario:
  • You set the focus on a cell at the edge of a DataGrid (for example, on a cell in the top or bottom row, or on a cell in the leftmost or rightmost column).
  • You press the arrow key that corresponds to the edge column (for example, you press Up from a cell in the top row).
  • The cell contains a focusable element (for example, a TextBox, Hyperlink, Button, or CheckBox element).
In this scenario, the focus moves to the focusable element. However, the focus is expected to remain on the DataGrid cell.

Issue 3

Consider the following scenario:
  • You create a custom panel that implements the IScrollInfo interface.
  • The VerticalOffset property returns a value that exceeds the value of the ExtentHeight property.
  • The AutoScroll property is set to true.
  • You try to "auto-scroll" the panel. For example, you click the mouse button inside the panel, and then you drag the mouse to a location that is underneath the panel by performing one of the following actions:
    • You scroll the panel until it reaches the end of its content.
    • You scroll the panel until you release the mouse button.
    • You move the mouse elsewhere.
In this scenario, an infinite loop may occur. This consumes memory and may cause a System.OutOfMemoryException exception to be thrown, which causes the application to exit.

Issue 4

Consider the following scenario:
  • You call the ScrollIntoView method on a ListBox or a DataGrid.
    Note This call can occur in many ways. For example, you call the ScrollIntoView method from a handler for the SelectionChanged event.
  • There are layout tasks pending on the ListBox or on the DataGrid.
In this scenario, a System.InvalidCastException exception may cause the application to exit.

Issue 5

Consider the following scenario:
  • You implement the INotifyDataErrorInfo interface on an object.
  • You data-bind some properties of a UI element to the object instead of to a property of the object.
  • You deactivate the binding by performing one of the following actions:
    • You replace the binding with a different binding.
    • You overwrite the property of the UI element with a different value (if it is a one-way binding).
    • You remove the UI element from the visual tree and release all references to it.
  • Your object raises the ErrorsChanged event.
In this scenario, a System.NullReferenceException exception may cause the application to exit.


Common language runtime (CLR)

Issue 1

Operations that involve the Array.Sort method experience slow performance. For example, when a program tries to sort a drop-down list.

Issue 2

After you upgrade from the .NET Framework 4 to the .NET Framework 4.5, previously installed .NET Framework 4-based applications may crash. Additionally, you receive an error message that resembles the following:

"Common Language Runtime detected an invalid program"

Issue 3

Assume that you upgrade a computer from an earlier version of the .NET Framework to the .NET Framework 4.5. Before the upgrade, there is an application that can read performance counters from ASP.NET. However, after you upgrade the .NET Framework, this feature can no longer read the performance counters from ASP.NET.

Issue 4

Assume that you upgrade a computer from the .NET Framework 4 to the .NET Framework 4.5. Before the upgrade, the Type.IsAssignableFrom method returns a value of true. However, after the upgrade, the method incorrectly returns a value of false.

To reproduce this issue, use the following code:

public class TestConstraint where T: U
{
public T t;
}

Class Program
{
static void Main( string[] args )
{
Type t = typeof( TestConstraint ).GetGenericArguments()[ 0 ];
Type u = typeof( TestConstraint ).GetGenericArguments()[ 1 ];
Console.WriteLine( u.IsAssignableFrom(t) );// The .NET Framework 4.0 displays "true." However, the .NET Framework 4.5 displays "false."
}
}


Issue 5

The CryptoStream class throws an ArgumentNullException exception in the .NET Framework 4.5 instead of throwing a CryptopgraphicException exception as it did in the .NET Framework 4. If a CryptoStream class tries to decrypt invalid data and is disposed of two times by using a pattern that resembles the following, the second call to the Dispose method throws an ArgumentNullException exception:


using (CryptoStream cs = new CryptoStream(ms, decryptor, CryptoStreamMode.Read))
{

using (StreamReader sr = new StreamReader(cs))
{
}
}
Issue 6

Assume that you upgrade an earlier version of the .NET Framework to the .NET Framework 4.5 on a computer. When you use some third-party controls on an application, you may receive a System.Security.SecurityException exception, and the application crashes.

Windows Forms

Issue 1

Assume that you have a .NET Framework 4.5-based Windows Form application. When you click a menu item to open a child window in the application, interactions with the menu and child windows behave incorrectly.

For example, you may experience the following:
  • When you open a shortcut menu in the child window, the main window form takes the focus.
  • You cannot use mnemonics to access a menu item.
Issue 2

When you set two controls to appear in the same cell as a TableLayoutPanel Windows Forms control, the two controls may be positioned in a different cell.

Cause

This issue occurs because the actual positions of the controls are resolved differently in the .NET Framework 4 and the .NET Framework 4.5.

Issue 3

The System.Windows.Forms.FontDialog.Color property returns a Color value as the System.Drawing.SystemColors class. These color objects have names that differ from the standard color names, for example "SystemText."

Standard color names are defined on the static members of the Color structure and can be recognizable not only by the .NET Framework, but also by Windows Forms.

For more information about the Color structure, go to the following MSDN website:

XML

Issue 1

When you try to redefine the default XML namespace during XSL transformation, an exception is thrown. Additionally, you receive the following error message:

Cannot construct namespace declaration xmlns='uri:schema1'.

Prefix '' is already mapped to namespace 'uri:schema2'.


Issue 2

Assume that you use the XmlSerializer class to serialize an array of structs that implements IEnumerable interfaceexplicitly. In this situation, a System.Reflection.TargetInvocationException exception is thrown in the .NET Framework 4.5.

Network Class Library

Issue 1

Assume that you run a .NET Framework 4.5-based application that uses asynchronous APIs to read chunked responses. In this situation, the chunked responses may be read synchronously.

Cause

The HttpWebRequest class lets callers read an HTTP response either synchronously or asynchronously. However, if the response is a chunked HTTP response, then parts of the response are read by using synchronous I/O (Winsock calls) even when the caller uses the asynchronous code path. In this situation, the calling thread is blocked until data is received on the network.

Issue 2

Assume that you have a .NET Framework 4.5-based application that communicates with a server over the Transport Layer Security/Secure Sockets Layer (TLS/SSL) protocol by using the HttpWebRequest or SslStream class. If the server requests an SSL renegotiation while the application is sending data, the application may encounter an unhandled exception and then crash.

Issue 3

A thread pool freezes in the HttpWebRequest class if an HTTPS request is aborted during an SSL renegotiation while a write operation is pending.

Cause

This issue occurs because of a race condition that may occur when the HttpWebRequest class or the SslStream class handles SSL renegotiation. In this situation, the thread pool may create more and more threads. Additionally, the resources that are held in memory are not cleared.

Issue 4

Assume that you have a .NET Framework 4.5-based application that communicates with a server through a proxy. If a request is aborted and proxy authentication is being negotiated at the same time, the application may encounter an unhandled exception and then crash.

Cause

This issue occurs because of an earlier fix to Thread.Abort() method processing. This fix added a function that could throw a new exception. Therefore, the Thread.Abort() method no longer throws this exception.


ASP.NET

Issue 1

Consider the following scenario:
  • You have an ASP.NET web application that displays different content based on the language setting of the browser.
  • A user uses Internet Explorer 10 on a Traditional Chinese version of Windows 8 to browse to that web application.
In this scenario, the web application does not display the Traditional Chinese version of the content to the user.

Issue 2

When you run the Perfmon.exe program on your local computer to monitor certain ASP.NET performance counters on a remote computer (for example, the Application Running performance counters), you always receive a value of 0. You receive this value even if there are several ASP.NET applications running on the remote computer.

Issue 3

Consider the following scenario:
  • In a Microsoft Visual Studio 2012 web site project, you add the <thead> tag into an HTML table control on an .aspx page. For example, you do the following:
    <table id="Table1" runat="server"><thead></thead></table>
  • You try to build the whole web site.
In this scenario, you receive a compilation error that resembles the following:

"The best overloaded method match for 'System.Web.UI.HtmlControls.HtmlTableRowCollection.Add(System.Web.UI.HtmlControls.HtmlTableRow)' has some invalid arguments"


Issue 4

Assume that you set the value of the cachedRolesInCookie property to true in your web application. Your application serializes the RolePrincipal object into the cookie, and then sends it in response. In this situation, the role cookie value is empty in the application's following request.

Issue 5

Consider the following scenario:
  • You have an ASP.NET web application, and the AntiXssEncoder typeis turned on in the application.
  • One of the web pages in the application has a HyperLink Web server control that uses the NavigateUrl property topoint to "mailto:xxx@contoso.com".
  • A user accesses the webpage by using his browser, and then clicks the hyperlink.
In this scenario, the user will be redirected to a page that does not exist.

Entity Framework

Issue 1

Consider the following scenario:
  • You develop an application that uses Microsoft SQL Server Compact 3.5 or SQL Server Compact 4.0 and Entity Framework in Microsoft Visual Studio 2010.
  • The application uses a "LINQ to Entities" query to perform multiple JOINstatements on the entity sets to obtain data.
  • You move the application to a computer that has the .NET Framework 4.5 installed.
  • You try to run the application.
In this scenario, the application might experience reduced performance because of the generation of SQL statements in Entity Framework that do not perform well against SQL Server Compact 3.5 or SQL Server Compact 4.0.

Issue 2

Consider the following scenario:
  • You run an application that queries for data by using Entity Framework on a computer that has the .NET Framework 4.5 installed.
  • The query uses "group by view" constructs.
In this scenario, you may experience poor query performance.

Note This issue does not occur when the application is running in the .NET Framework 4.

Windows Workflow Foundation (WF)

Issue 1

Consider the following scenario:
  • You have an existing Visual Studio 2010 Activity Library project, or you create a new Activity Library project.
  • You have some resource files in the project which will be embedded into the assembly.
  • You build the project in Visual Studio 2012.
In this scenario, the build process is successful. However, the resource files are not embedded into the assembly correctly.

Issue 2

Consider the following scenario:
  • You create a Workflow Console Application project that is named "WorkflowConsoleApplication1."
  • You open the default workflow, and you add an argument of type string.
  • You set the default value of the new argument to a certain value, such as "example."
  • You add the following line to the code:
    [assembly:System.Windows.Markup.XmlnsDefinition("foobar", "WorkflowConsoleApplication1")]
  • You build the solution and then you try to open the default workflow again.
In this scenario, the workflow designer cannot be loade and you receive the following error message:

"Workflow Designer encountered problems with your document"

Windows Communication Foundation (WCF)

Issue 1

Consider the following scenario:
  • You develop a WCF service project that targets the .NET Framework 4.0 on a computer that has the .NET Framework 4.5 installed.
  • You set the value of the aspNetCompatibilityEnabled property to true in the web.config file.
  • You deploy the WCF service project on another computer that has the .NET Framework 4.0 installed.
In this scenario, a System.ServiceModel.ServiceActivationException exception is thrown.

Note This issue does not occur when you deploy the WCF service project on a computer that has the .NET Framework 4.5 installed.

Cause

This issue occurs because the default value of the AspNetCompatibilityRequirements attribute is NotAllowed in the .NET Framework 4.0. However, this default value is changed to Allowed in the .NET Framework 4.5.

Workaround

To work around this issue, explicitly set the ASP.NET compatibility mode for the service on the service contract by adding the following code:

[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
Issue 2

The public API ByteStreamMessageEncoder.CreateMessage creates an XmlDictionaryReader class that uses the default XmlDictionaryReaderQuotas instead of the maximum quotas defined in XmlDictionaryReaderQuotas.Max. This may cause a System.Xml.XmlException (maximum quota exceeded) exception to occur.

Issue 3

When you try to access an upload stream property (for example, the HttpRequest.InputStream property)instead of a service operation, you receive the following error message:

This method or property is not supported after HttpRequest.GetBefferlessInputStream has been invoked"

Issue 4

When you try to generate WCF proxiesfor ASMX services by using either the Add Service Reference dialogor the .NET Framework 4.5 Svcutil.exe utility, the generated service reference is invalid with missing types.

Issue 5

Consider the following scenario:
  • You create an ASP.NET MVC4 Web API project in Visual Studio 2012.
  • You add a WCF service reference in the project.
In this scenario, the Reference.cs file for the service reference is empty.

Cause

This issue occurs because the DataContractSerializer class has encountered a type (Newtonsoft.Json.Linq.JToken) that it does not support. In this case, it throws an exception, and then stops generating the service reference.

↑ Back to the top


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

↑ Back to the top

Article Info
Article ID : 2750147
Revision : 1
Created on : 1/7/2017
Published on : 4/22/2013
Exists online : False
Views : 689