We've recently upgraded our solution to .NET 4.5.
I've come to understand that System.Web.Security.MembershipUser has been moved to System.Web.ApplicationServices.dll.
I've added a reference to our website in the web.config file:
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
I've used the proper "using" statement in the c# page in question:
using System.Web.ApplicationServices;
And still, the following code throws an error on MembershipUser:
MembershipUser u = Membership.GetUser(User.Identity.Name);
I'm entirely unsure of what to do at this point. I've been researching this all day and have applied a few changes (namely the web.config change) and yet this c# page will still not recognize the changes and the error remains.
What's odd is that the site will build and be usable even with this existing error, with the exception of the "Change Password" functionality this code was intended to address.
Can anybody possibly point me as to where I might be missing references or assemblies?