InvalidDeploymentException - Application identity is not set

后端 未结 2 1590
你的背包
你的背包 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:26

    Does the window defined in the control library access the System.Deployment namespace? Do you have a stack trace that we could take a look at?

    The MSDN documentation for InvalidDeploymentException states that this exception indicates that the system "could not read either the deployment or application manifests".

    Some googling indicates that this exception could be raised when accessing the System.Deployment.Application.ApplicationDeployment.CurrentDeployment property, and the application is not a ClickOnce application. I suspect that for this window you are using, the controls library is accessing this property or something similar in the System.Deployment namespace.

提交回复
热议问题