New Posts New Posts RSS Feed: login fails after clickonce deployment
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

login fails after clickonce deployment

 Post Reply Post Reply
Author
diego View Drop Down
Newbie
Newbie


Joined: 18-Apr-2008
Location: Argentina
Posts: 2
Post Options Post Options   Quote diego Quote  Post ReplyReply Direct Link To This Post Topic: login fails after clickonce deployment
    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
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post 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 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
 
Back to Top
diego View Drop Down
Newbie
Newbie


Joined: 18-Apr-2008
Location: Argentina
Posts: 2
Post Options Post Options   Quote diego Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down