none
Impersonate User Error "An item with the same key has already been added" RRS feed

  • Question

  • Hello,

    When I try to impersonate a user I get an exception "An item with the same key has already been added." My code works most times but throws this exception at random. Any idea what is wrong? 

    service.ImpersonatedUserId = new ImpersonatedUserId(ConnectingIdType.SmtpAddress, "john.smith@contoso.com");

    Thanks

    Vishnu

    Thursday, June 16, 2016 6:55 PM