More in this section
Forums / Security / 'UserManager' does not contain a definition for 'GetCurrentUserName'

'UserManager' does not contain a definition for 'GetCurrentUserName'

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. lam huynh
    lam huynh avatar
    8 posts
    08 Sep 2009
    21 Jun 2010
    Link to this post
    I'm still working in this project for long time.
    Suddently, I get the error : 'UserManager' does not contain a definition for 'GetCurrentUserName'
    I don't know why it happend. But I'm sure that this function worked for long time ago.
    My code so easy:
    String username=UserManager.GetCurrentUserName();
    It can't run with GetCurrentUserName() function!!
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    21 Jun 2010
    Link to this post
    Hi lam huynh,

    Please check which version of Sitefinity  you use. The method is presented in Telerik.Security.dll  of Sitefinity 3.7  inside Telerik.Security.UserManager class as a public static string.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered