Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6842827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:08:57+00:00 2026-05-27T00:08:57+00:00

My WPF project uses .NET 4 client profile. When I add <ResourceDictionary Source=/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml />

  • 0

My WPF project uses .NET 4 client profile. When I add

<ResourceDictionary Source="/PresentationFramework.Aero;component/themes/Aero.NormalColor.xaml" />

to <Application.Resources> I get this exception when starting the program in debug mode (in release mode the program silently crashes):

A first chance exception of type
‘System.Windows.Markup.XamlParseException’ occurred in
PresentationFramework.dll

Additional information: ‘Set property
‘System.Windows.ResourceDictionary.Source’ threw an exception.’ Line
number ’14’ and line position ’14’.

When I set the property “Copy Local” of PresentationFramework.Aero to true, everything works and the exception is gone.

“Copy Local” places a copy of PresentationFramework.Aero in my output directory and I therefore need to include it in my setup project. Why is that necessary? According to MSDN PresentationFramework.aero is included in the .NET framework 4.0 client profile and therefore in the GAC. I do not feel comfortable deploying a framework file with my application.

Udate:

As Hans Passant suggested I verified that the directory PresentationFramework.Aero exists in C:\windows\microsoft.net\assembly\gac_msil. Then I used fuslogvw.exe to generate the following log, created when starting my application “SetACL Studio.exe” without PresentationFramework.Aero.dll being present in the application directory. Interestingly, the loader does not even check the GAC. Why?

*** Assembly Binder Log Entry  (18.11.2011 @ 17:13:27) ***

The operation failed.
Bind result: hr = 0x80070002. The system cannot find the file specified.

Assembly manager loaded from:  C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Running under executable  D:\Daten\Helge\Programmierung\SetACL Studio\Source\Bin\Debug\SetACL Studio.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: User = HKT520\Helge
LOG: DisplayName = PresentationFramework.Aero, Culture=neutral
 (Partial)
WRN: Partial binding information was supplied for an assembly:
WRN: Assembly Name: PresentationFramework.Aero, Culture=neutral | Domain ID: 1
WRN: A partial bind occurs when only part of the assembly display name is provided.
WRN: This might result in the binder loading an incorrect assembly.
WRN: It is recommended to provide a fully specified textual identity for the assembly,
WRN: that consists of the simple name, version, culture, and public key token.
WRN: See whitepaper http://go.microsoft.com/fwlink/?LinkId=109270 for more information and common solutions to this issue.
LOG: Appbase = file:///D:/Daten/Helge/Programmierung/SetACL Studio/Source/Bin/Debug/
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = SetACL Studio.exe
Calling assembly : PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\Daten\Helge\Programmierung\SetACL Studio\Source\Bin\Debug\SetACL Studio.exe.Config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///D:/Daten/Helge/Programmierung/SetACL Studio/Source/Bin/Debug/PresentationFramework.Aero.DLL.
LOG: Attempting download of new URL file:///D:/Daten/Helge/Programmierung/SetACL Studio/Source/Bin/Debug/PresentationFramework.Aero/PresentationFramework.Aero.DLL.
LOG: Attempting download of new URL file:///D:/Daten/Helge/Programmierung/SetACL Studio/Source/Bin/Debug/PresentationFramework.Aero.EXE.
LOG: Attempting download of new URL file:///D:/Daten/Helge/Programmierung/SetACL Studio/Source/Bin/Debug/PresentationFramework.Aero/PresentationFramework.Aero.EXE.
LOG: All probing URLs attempted and failed.

Update 2:

This is the output from gacutil:

C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin>gacutil.exe /l presentationframework.aero
Microsoft (R) .NET Global Assembly Cache Utility.  Version 3.5.30729.1
Copyright (c) Microsoft Corporation.  All rights reserved.

The Global Assembly Cache contains the following assemblies:
  presentationframework.aero, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL

Number of items = 1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:08:58+00:00Added an answer on May 27, 2026 at 12:08 am

    I just found the following on MSDN:

    You can also make a dynamic reference to an assembly by providing the
    calling method with only partial information about the assembly, such
    as specifying only the assembly name. In this case, only the
    application directory is searched for the assembly, and no other
    checking occurs.

    That explains the behavior I was seeing and why the GAC was not searched for PresentationFramework.aero.dll. I changed the dynamic reference to a full reference and removed “Copy Local” from PresentationFramework.aero. It now works without needing PresentationFramework.aero.dll in my application directory.

    For reference, here is the working resource dictionary code:

    <ResourceDictionary Source="/PresentationFramework.Aero,Version=3.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL;component/themes/Aero.NormalColor.xaml" />
    

    In short, delete the local copy of your themes(in case you have added in your solution), add the full reference in the App.xaml file under Application.Resources (Resource Dictionary) and this should do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a grid in a XAML file in a WPF project. This MainGrid
I have a wpf project which uses transparent windows and I share this transparent
I have some storyboards in XAML (WPF Project) and I´m calling them from the
I recently worked on a .Net WPF project to build a retail point of
I have a client application (WPF, C#, .net4) which uses POCO entity model connected
I have a C# WPF (.NET 4.0) application that uses Excel interop to read
I have a mediaelement in my project (which uses a combination of WPF4 XAML
I have a WPF project and I'm trying to setup a NAnt build script
I am starting a WPF project, which will be fairly complicated in complexity and
I started a new WPF project in VS2008 and then added some code to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.