Search code examples
asp.netasp.net-mvcasp.net-membershipmembership-provider

Does ASP.NET Membership Provide a Way to Access the aspnet_Profile Table


I would like to be able to retrieve a value of one of the concatenated string properties (PropertyNames column) for the logged in user.

I looked through the Membership class but could not find any way so far.

Any idea? And what would be the best approach?


Solution

  • Got it! Using System.Web.Profile.

    Found the following link helpful about extracting individual properties.

    Also, the app was throwing the following error:

    Could not load type 'System.Web.Security.SqlProfileProvider'
    

    A change was needed to be made in the Web.Config file

    The following link pointed to the main issue