views:

160

answers:

1

Is there any way of restarting a single instance application, which is deployed via clickonce?

+2  A: 

Try

Application.Restart()

This will restart a WinForms ClickOnce application.

JaredPar
I have already tried this solution but the app crashes after the "restart". I don't know if it has something to do with the single instance option.
Chocol8
Can you give us some details as to how/why it crashes?
JaredPar
System.ComponentModel.Win32Exception {"An unexpected error has occurred because an operating system resource required for single instance startup cannot be acquired."}
Chocol8