XAMLParseException driving me CRAZY!

前端 未结 3 563
故里飘歌
故里飘歌 2021-01-17 23:28

THIS XAMLParseException IS DRIVING ME CRAZY!! I am using .NET 3.5 in Visual Studio 1020 This is my xaml:



        
3条回答
  •  不思量自难忘°
    2021-01-18 00:05

    I don't think this is really a XamlParseException: I think it's a TargetInvocationException which has gotten wrapped in a XamlParseException. Take a look at the ultimate inner exception:

    NLog.Config.NLogConfigurationException Message=Exception occured when loading configuration from 'C:\Users\Mohit\Documents\Visual Studio 2010\Projects\Notepad\Notepad\bin\Debug\NLog.config'

    It looks like you have a borked configuration file, possibly due to invalid XML or possibly for some more specific reason.

    When you get a mysterious XamlParseException, it's always worth checking the InnerException for a TargetInvocationException (and drilling in from there if there is one). Yes, it is very confusing and misleading!

提交回复
热议问题