.NET application cannot start and receive XamlParseException

前端 未结 14 2454
小鲜肉
小鲜肉 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:19

    The "TryCathcWhen"-related line makes me think about some unhandled exception on startup, or an exception is being thrown in a catch block on startup.

    Seeing your startup code would be helpful.

    0 讨论(0)
  • 2020-11-28 09:27

    This is really a generic error. In my case freshly installed application failed to create its own event source due to insufficient permissions. Resolved (ugly one) by running the app one time in "as admin" mode. Make sure that all inner exceptions are handled. Events is also a good source of information.

    0 讨论(0)
提交回复
热议问题