Print Page | Close Window

login fails after clickonce deployment

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=775
Printed Date: 11-Jun-2026 at 4:48am


Topic: login fails after clickonce deployment
Posted By: diego
Subject: login fails after clickonce deployment
Date Posted: 18-Apr-2008 at 2:14pm
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



Replies:
Posted By: davidklitzke
Date Posted: 22-Apr-2008 at 2:10pm
One of the most common reasons that an application will run successfully on a development environment, but will fail when deployed to another machine is that the deployment is missing some file presnt on the development machine, but missing on the system where the app has been deployed.
 
Install the same version of DevForce on the failing machine is on the development machine and see if that makes a difference.
 
If that doesn't work, please send to mailto:support@ideablade.com - support@ideablade.com :
 
(1)  A reproducible case of the problem (Best)
(2)  As much Detail as possible about the exception concerning the bad cast
(3)  Source code for Model.AppIdentity
 


Posted By: diego
Date Posted: 23-Apr-2008 at 5:30am
Thank you,
I was missing a dll, the error didn't show anything related to that missing file so it took longer to discover,
thanks
diego



Print Page | Close Window