Quantcast fixed: MembershipUser could not be found

fixed: MembershipUser could not be found

by Neon Quach 13. August 2011 22:57

Mình đang cố gắng khai báo 1 instance MembershipUser object thì mình nhận được thông báo lổi này, lý do là khi chúng ta sử dụng Role & Membership với ASP.NET 4.0 thì chắc chắn chúng ta sẽ gặp phải lổi này.

Cách khắc phục là thay vì include System.Web.dll, chúng ta sẽ phải include System.Web.ApplicationServices.dll thì sẽ fix được lỗi này.



Hope helpful

Tags: ,


Categories: asp.net

blog comments powered by Disqus

About me

I'm  currently employed as Software developer at devinition.com and also a Microsoft Certified Technology Specialist (MCTS), Microsoft Certified Professional Developer (MCPD) in Net Framework 2.0 and 3.5: Web Applications and MCTS .NET Framework 3.5, ADO.NET Applications

Powered by BlogEngine.NET 2.5.0.5 - Eco Theme by n3o Web Designers