I'm having this exception when trying to use any of the Deployment members like for example I try in this simple code:
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
MsgBox(If(My.Application.Deployment.IsFirstRun, "Yes", "No"))
End Sub
End Class
Exception message: Application identity is not set
The exception occurs in debugging and also in release, in VS2012, targeting FW 4.0 in a Winforms.
I've read here: Application identity not set Exception
...And also here: InvalidDeploymentException - Application identity is not set
I don't remember how to deactivate the exception checking in the project settings but anyways there is a way to avoid this exception without manually disabling exceptions?
The reason is just I don't want to manually disable exceptions and remember to do it for each of my stored and future projects, I want to fix this problem in a natural way.