Invalid token for impersonation - it cannot be duplicated

Invalid token for impersonation - it cannot be duplicated

Old forum URL: forums.lhotka.net/forums/t/8004.aspx


Pieter315 posted on Tuesday, November 17, 2009

Hi All,

Trying to get the ProjectTracker WCF sample going. I'm able to get a list of projects and roles, no problem, but if I try to add a Project I get the following error:

Invalid token for impersonation - it cannot be duplicated

I haven't changed anything in the config files, other than the connectionstrings...what did I miss?

Thanks in advance!

Pieter315 replied on Tuesday, November 17, 2009

let that be a lesson to me...read previous posts before posting Smile [:)]

add
 ProjectTracker.Library.Security.PTPrincipal.Logout();
 
before this:
 ProjectTracker.Library.Security.PTPrincipal.LoadPrincipal("pm");

Copyright (c) Marimer LLC