InvalidDeploymentException - Application identity is not set

后端 未结 2 1592
你的背包
你的背包 2021-01-12 06:33

I\'ve got a WPF application that references a WPF controls library. When I try to launch (myWindow.Show()) a window that is inside the control library, I get the following e

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-12 07:22

    You didn't say whether this was under the VS debugger, but...

    I was getting this one today from code that set a control's ImageSource to be a BitmapImage(someURI). The code had been working perfectly, and I was puzzled until I realized that I had for other reasons just told the debugger to break on CLR exceptions. So I unchecked the System.Deployment subcategory of exceptions, and my code once again ran perfectly. Kind of a pain that MS uses the exception system internally to handle cases that I shouldn't have to care about.

提交回复
热议问题