We help IT Professionals succeed at work.

How do I figure out a “DependencyProperty.UserValue” exception in my WPF/MVVM application?

jxbma asked
Last Modified: 2017-04-04
I have a C#/.Net/WPF/MVVM application.

The application runs fine when running through VS 2015.

When I run the application standalone (on a different machine), I get the following exception at startup:

An unhandled exception of type "System.InvalidOperationException" occurred in WindowsBase.dll

Additional information "{DependencyProperty.UnserValue} is not a valid value for property "TopLevelItemTemplateKey"

What is really going on?

How do I debug this?

Watch Question

I Design & Develop Software
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions