运行测试时出错:“您必须添加对程序集的引用...”
我正在尝试启动测试,但收到此错误
类型“System.Web.Security.MembershipUser”是在 未引用的程序集。您必须添加对程序集的引用 'System.Web.ApplicationServices,版本=4.0.0.0,文化=中性, PublicKeyToken=31bf3856ad364e35'。
我搜索了谷歌,发现我必须将引用System.Web.ApplicationServices
添加到我的项目中,我这样做了,但仍然不起作用。
我把它写在 web.config 中,但没有,我得到了同样的错误
<assemblies>
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
任何想法!谢谢。
I am trying to launch a test but I obtain this error
The type 'System.Web.Security.MembershipUser' is defined in an
assembly that is not referenced. You must add a reference to assembly
'System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35'.
I looked for google and found that I have to Add Reference System.Web.ApplicationServices
to my project, i do it but still dont work.
I wrote it in web.config to but nothig, I obtain the same error
<assemblies>
<add assembly="System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
Any idea!!! Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你什么时候遇到这个问题?在构建项目时,还是在实际运行测试时?
如果您在构建项目时收到该文件,请按照以下步骤查看是否可以解决您的问题:
1 - 在您的计算机中搜索此文件:“System.Web.Security.MembershipUser.dll”
2 - 找到该文件后,打开您的计算机项目并选择“添加引用”菜单命令
3 - 选择您在步骤 1 中找到的文件
When do you get this problem? When building your project, or when actually running the test?
If you get it when you build your project, follow these steps to see if it resolves your problem:
1 - Search your machine for this file: "System.Web.Security.MembershipUser.dll"
2 - Once you find it, open your project and choose the "Add Reference" menu command
3 - Choose the file you found in step 1