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?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.