.NET application cannot start and receive XamlParseException

前端 未结 14 2535
小鲜肉
小鲜肉 2020-11-28 08:47

I wrote an app that can install and work on my development PC (a Window 7).

  • Development Environment: Window 7, VS2010 WPF C# with both .NET 4
14条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 09:01

    I had a .Net 2.0 app that worked with debugging on But not in a release build(after install). I wasn't getting any logging from my Application directly, my Errors came straight from .NET. The issue was I had created my Own Program class with a static void MAIN() inside the main I had a try...catch..finally block. For some reason .NET was choking on the finally. Do you have anything like that in your program?

提交回复
热议问题