FIX: An exception in the XAML parser is thrown when you run a WPF application on a computer that has customized English (United States) regional settings

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

SYMPTOMS

Consider the following scenario:
  • You have a computer that uses the English (United States) regional settings.
  • In the Regional and Language Options item in Control Panel, you customize the List separator character in Customize Regional Options dialog box .
  • You create a Windows Presentation Foundation (WPF) application.
  • The application creates a CultureInfo object for the English (United States) culture before WPF starts rendering.
When you start the application, an exception is thrown by the Extensible Application Markup Language (XAML) parser, and then the application crashes.

CAUSE

When you create a CultureInfo object for the customized English (United States) culture, common language runtime (CLR) saves the CultureInfo object in the cache to increase performance. Therefore, the XAML parser retrieves the customized object from the cache and then uses the English (United States) culture to parse the XAML code. Because of the customized list separator character, the XAML parser cannot parse the XAML code, and then the XAML parser throws an exception.

RESOLUTION

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, 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 Web site:
http://support.microsoft.com/contactus/?ws=support
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.

Prerequisites

You must have .NET Framework 3.5 SP1 installed on a computer that is running Microsoft Windows Server 2000, Windows Server 2003, or Windows XP.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

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.
x86 version for Windows Server 2000, for Windows Server 2003 and for Windows XP
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Presentationbuildtasks.dll3.0.6920.4003598,01621-Apr- 200901:04x86
Presentationcore.dll3.0.6920.40034,214,78421-Apr- 200901:11x86
Presentationframework.dll3.0.6920.40035,279,74421-Apr- 200901:07x86
Windowsbase.dll3.0.6920.40031,245,18421-Apr- 200901:11x86
x64 version for Windows Server 2000, for Windows Server 2003 and for Windows XP
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Presentationbuildtasks.dll3.0.6920.4003598,01621-Apr- 200900:35x64
Presentationcore.dll3.0.6920.40033,996,67221-Apr- 200900:43x64
Presentationframework.dll3.0.6920.40034,636,67221-Apr- 200900:39x64
Windowsbase.dll3.0.6920.40031,105,92021-Apr- 200900:43x64

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Properties

Article ID: 968227 - Last Review: June 4, 2009 - Revision: 2.1
APPLIES TO
  • Microsoft .NET Framework 3.5 Service Pack 1
Keywords: 
kbhotfixserver kbexpertiseadvanced kbqfe kbsurveynew KB968227

Give Feedback