Last post Oct 27, 2009 11:49 AM by xaeryan
Oct 27, 2009 09:00 AM|xaeryan|LINK
I am implementing custom providers for the Membership/Roles/Profiles. Previously, I was simply creating a class inheriting the base provider class and overriding the needed methods, like follows:
Public Class Users
Public Overrides Function ChangePassword(ByVal username As String, ByVal oldPassword As String, ByVal newPassword As String) As Boolean
'code goes here
Now I am getting errors on ALL three of my providers:
Type 'System.Web.Security.MembershipProvider' in assembly 'System.Web, Version=18.104.22.168, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has been forwarded to assembly 'System.Web.ApplicationServices'. Either a reference to 'System.Web.ApplicationServices'
is missing from your project or the type 'System.Web.Security.MembershipProvider' is missing from assembly 'System.Web.ApplicationServices'.
I have added a reference to System.Web.ApplicationServices in my project. However during my testing, in intellisense if I try to do an Import on this class or even the System.Web.Security.MembershipProvider class, neither comes up. What am I missing here?
Oct 27, 2009 11:49 AM|xaeryan|LINK
Nevermind, I knocked the Build target down to 3.5, then changed it to 4.0 again and it went through my web.config and made all necessary changes... and then some? It removed lots of stuff, hoping that's a good thing:
Seems to be working fine, but I'm not really sure the effect of not having these sections.