Go to the Project properties → Security, and then uncheck “Enable ClickOnce Security Settings”. Now it debugs and runs without the error.
Go to the Project properties → Security, and then uncheck “Enable ClickOnce Security Settings”. Now it debugs and runs without the error.