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

jxbma used Ask the Experts™
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

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I Design & Develop Software
First thing you have to do is isolate what is causing the exception, try to identify the change you did that resulted in the exception and as always first thing you should do is delete the bin folder and rebuild your project.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial