【问题标题】:asp.net reference required to assembly system.webapplication.services组装 system.webapplication.services 所需的 asp.net 参考
【发布时间】:2014-04-28 12:49:13
【问题描述】:

在 Visual Studio 2013 中,我收到一个错误,例如 Reference required to assembly 'System.Web.ApplicationServices, Version =4.0.0, Culture=neutral, PublicKey token=xxxxxxxxxxxxxxxx' 包含类型 'System.Web.Security.MembershipUser '.向您的项目添加一个。

同样的代码在 VS 2010 中不会出现错误(我猜 VS 使用的是 asp.net 2.0?)

我知道缺少一些参考资料?但我不知道我应该添加到参考的确切文件(如果有的话)?

感谢您的建议!

【问题讨论】:

    标签: asp.net visual-studio visual-studio-2013


    【解决方案1】:

    对于 .net 4.0,您需要对 System.Web.ApplicationServices.dll 的引用

    它在文档中! http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.aspx

    【讨论】:

    • 谢谢,但不知为何无法添加? dll 文件位于我的 .net framework 4.5 下,但我无法将其添加到引用中(通过勾选 System.Web.ApplicationServices 左侧的框)并单击确定?
    【解决方案2】:
    Right Click => Add Reference => .NET tab => 
    

    在这里您将看到dlls 的所有列表,查找System. . . . 并获取您所需的参考并点击确定按钮

    【讨论】:

      猜你喜欢
      • 2017-09-01
      • 1970-01-01
      • 2013-12-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-10-21
      相关资源
      最近更新 更多