find a location for property in a new city

Thursday, 15 April 2010

The type name 'MembershipProvider' could not be found in the namespace 'System.Web.Security' Upgrade to ASP.NET4

I received this error after upgrading to ASP.NET 4, "The type name 'MembershipProvider' could not be found in the namespace 'System.Web.Security'. This type has been forwarded to assembly 'System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' Consider adding a reference to that assembly. ASP.NET4."

You wont believe what I did to fix it... I added the reference that it asked for, System.Web.ApplicationServices.

This has happened since MembershipUser and Other Types in the System.Web.Security Namespace Have Been Moved

Follow britishdev on Twitter

8 comments:

  1. Thank you. I was having a tough time tracking this one down. Most online references indicate that it's in System.Web.Security.

    ReplyDelete
    Replies

    1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru Dot Net Training in Chennai. Nowadays Dot Net has tons of job opportunities on various vertical industry.
      or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.

      Delete
  2. Thanks. MSDN still says it's in System.Web.Security.

    ReplyDelete
  3. Can't get this to work in IIS for trustedProviders! Ideas?

    ReplyDelete
  4. Thanks.it worked for me...

    ReplyDelete