Problems with MembershipUser / System.Web.ApplicationServices when upgrading to .net 4
Posted
by DaveK
on Stack Overflow
See other posts from Stack Overflow
or by DaveK
Published on 2010-06-05T15:34:50Z
Indexed on
2010/06/05
15:42 UTC
Read the original article
Hit count: 1042
I have a large vb.net web project that I am trying to updgrade to .net4/VS2010. During compile I get the following error:
'System.Web.Security.MembershipUser' in assembly 'System.Web, Version=4.0.0.0, 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.MembershipUser' is missing from assembly 'System.Web.ApplicationServices'.
I researched the issue and the error is accurate. I added a reference to System.Web.ApplicationServices but I am still having problems. The project does not seem to recognize that the reference has been added. Intellisense will not pick it up, I can not use it in an Import statement, etc ...
The assembly is listed in the compile section of my web.config:
<assemblies>
...
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
Any ideas?
© Stack Overflow or respective owner