我有一个大型的vb.net web项目,我试图升级到.net4 / VS2010.在编译期间,我收到以下错误:
‘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’.
我研究了这个问题,错误是准确的.我添加了对System.Web.ApplicationServices的引用,但我仍然遇到问题.该项目似乎没有认识到已添加参考. Intellisense不会拿起它,我不能在Import语句中使用它等…
该程序集列在我的web.config的编译部分中:
<assemblies> ... <add assembly="System.Web.ApplicationServices,PublicKeyToken=31BF3856AD364E35"/> </assemblies>
有任何想法吗?