加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

vb.net – 升级到.net 4时MembershipUser / System.Web.Applicat

发布时间:2020-12-17 00:30:44 所属栏目:大数据 来源:网络整理
导读:我有一个大型的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 ass
我有一个大型的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>

有任何想法吗?

我最近将项目从3.5升级到4.0并收到了您在上面定义的错误.我发现targetFramework属性未包含在web.config中的编译节点上.这解决了编译错误的问题.
compilation debug="false" strict="false" explicit="true" **targetFramework="4.0"**

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读