vb.net - VS .Net reference issue -


can explain why code line works fine in method in class, yet in class working on vs says reference missing? both have import statement system.web.security

 dim newuser membershipuser = membership.getuser(username) 

here error message

error 1 type 'system.web.security.membershipuser' in assembly 'system.web, version=4.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a' has been forwarded assembly 'system.web.applicationservices'. either reference 'system.web.applicationservices' missing project or type 'system.web.security.membershipuser' missing assembly 'system.web.applicationservices'.

reference not same import.

according the documentation, membership class located in system.web.dll. thus, need add system.web.dll project references.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -