How to solve: “exception was thrown by the target of invocation” C#

前端 未结 4 478
生来不讨喜
生来不讨喜 2020-12-10 12:18

C#

Every time I run my porgram I get this exception: \"alt

But when I run in debug mode, there i

4条回答
  •  萌比男神i
    2020-12-10 12:38

    For me, had some null references in the OnLoad() of a XAML project (and it threw OP's nebulous error). Just as Lasse Vågsæther Karlsen answered, looking at the inner exception's stacktrace got me to the line number.

提交回复
热议问题