themightymanuel
themightymanuel

Reputation: 135

WPF Presentation Framework Exception

I am having an issue with my WPF application throwing the following exception:

An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in PresentationFramework.dll

Additional information: Exception has been thrown by the target of an invocation.

The exception occurs inside the InitializeComponent(); on the main window:

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        mc:Ignorable="d" x:Class="NationStates_Telegram_Suite.MainWindow"
        Title="NationStates Telegram Suite" Height="475" Width="610"
        ResizeMode="CanMinimize">

of the xaml. VS Gives me the option to step inside the dll and it is broken at this line if that helps:

55F94E4B push dword ptr [ebp+8]

I have commented out everything I think I tried commenting out all of the code changes I made to know avail. How does one resolve this?

Upvotes: 1

Views: 1089

Answers (1)

ΩmegaMan
ΩmegaMan

Reputation: 31721

One strategy to employ is to remove any bindings in the xaml and run until the problem stops.

There may be a race condition with a binding and initialization which is occurring.

Upvotes: 1

Related Questions