更新asp.net(vb)web应用程序时出现问题
嗨,我刚刚更新了一个旧的webapp,现在我有这个错误 错误10在程序集中键入“System.Web.Security.MembershipUser” 'System.Web,版本=4.0.0.0,区域性=中性, PublicKeyToken=b03f5f7f11d50a3a'已转发给程序集 “System.Web.ApplicationServices”。或者引用 “System.Web.ApplicationServices”在您的项目或应用程序中丢失 程序集中缺少类型“System.Web.Security.MembershipUser” “System.Web.ApplicationServices”。E:\PC\Visual Studio 2010\Projects\TIVENCA\Fuente\TIVENCA 10-12-2008\Mega.TimeCard.Web\Cargar\Cargar.aspx.vb 89 27 E:…\Mega.TimeCard.Web\ 这是电话线更新asp.net(vb)web应用程序时出现问题,asp.net,vb.net,Asp.net,Vb.net,嗨,我刚刚更新了一个旧的webapp,现在我有这个错误 错误10在程序集中键入“System.Web.Security.MembershipUser” 'System.Web,版本=4.0.0.0,区域性=中性, PublicKeyToken=b03f5f7f11d50a3a'已转发给程序集 “System.Web.ApplicationServices”。或者引用 “System.Web.ApplicationServices”在您的项目或应用程序中丢失 程序集中缺少类型“System.Web
Dim mu As MembershipUser = Membership.GetUser(Profile.UserName)
这是参考资料
这里有很多错误
最后是我的web.config文件(下载txt)
更新 根据该屏幕截图,您应该删除system.web.extensions程序集的3.5和1.0.61025.0版本。只有4.0参考应该在那里。其他人对此感到困惑,因为您只能在项目中引用程序集的1个版本
听起来您遇到了一个.net 4破坏性更改:
解决方法是将System.Web.ApplicationServices程序集添加到项目中。这应该在转换过程中发生。。取决于您对其进行的转换。好的,经过大量的尝试,我终于对其进行了转换
我在web.config上更改了从3.5到4.0的所有版本,并解决了此错误我添加了参考,仍然没有任何内容,从2008年到2010年进行了更新vb(visual studio)是的,我添加了参考系统。web.ApplicationServices.dll仍然给出相同的错误,我想我必须更改代码行@Chris Lively