Hello, I have an aplication that locally runs ok, when I publish to use clickonce it seems to work but I get an error when login in that says
it cannot cast System.Security.Principal.GenericIdentity' to
the type 'Model.AppIdentity'
On this method
private void SetLoggedInUser(PersistenceManager pManager,
IdeaBlade.Persistence.SessionBundle
pSessionBundle)
{
AppIdentity identity = (AppIdentity)pSessionBundle.Principal.Identity;
.
.
.
}
Where AppIdentity is an implementation of IIdentity adding 2 values. This cast works ok when running locally on the development machine, but if I publish I get that error. (Security is enabled for ClickOnce as a fully trusted application)
Is there any other configuration needed?
Thank you
Diego