找不到System.web.mail DLL参考 [英] System.web.mail DLL reference not found

查看:536
本文介绍了找不到System.web.mail DLL参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在system.web.mail 命名空间上遇到问题.我正在使用VS.NET 2010-VB.NET.我正在开发一个具有SMTP支持的项目,但是当我尝试使用解决方案资源管理器导入system.web.mail 引用时,该项目未列出,并且当我尝试添加它时,找不到该项目.我手动尝试搜索DLL,但找不到它.有任何想法吗?还是以前有人遇到过这个问题?

Sid

Hi Guys,

I am having an issue with system.web.mail namespace. I''m using VS.NET 2010 - VB.NET. I''m developing a project with SMTP support but when I try to import the system.web.mail references using solution explorer, it was not listed and when I tried to add it, it cannot be found. I have manually tried searching for the DLL and I cannot find it. Any Ideas? Or has anyone come across this issue before?

Sid

推荐答案

大家好,

找到了解决方案,system.web.mail现在已是.net Framework 4中的过时名称空间.它现在位于system.net.mail下.

为您的所有帮助而欢呼.
Hi All,

Found the solution, system.web.mail is now obsolete namespace in .net framework 4. its now located under system.net.mail.

Cheers for all your help.


甚至在旧版本的.NET Framework中也可以找到它.
这不是您添加为DLL的东西:这是GAC.有两个步骤:1)添加引用:System.Web;适用于v.4.0-System.Net; 2)您要使用的名称空间是System.Web.Mail(System.Net.Mail).

不要混淆它们:程序集,DLL(程序集并不总是一个DLL或EXE文件,而DLL是一个模块)和命名空间.


经OP澄清后,添加了.NET Framework v.4.0的程序集.
很抱歉给您带来不便.

—SA
It is found even in older versions of .NET Framework.
This is not something you add as a DLL: this is GAC. There are two steps: 1) add reference: System.Web; for v.4.0 — System.Net; 2) name space you want to use is System.Web.Mail (System.Net.Mail).

Don''t mix them up: assemblies, DLLs (assembly is not always one DLL or EXE file a DLL is a module) and name spaces.


After clarification by OP, added assembly for .NET Framework v.4.0.
Sorry for the inconvenience.

—SA


添加对System.Web的引用,然后重试.

例如请参见此处 [
Add a reference to System.Web and try again.

For an e.g. see here[^].


这篇关于找不到System.web.mail DLL参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆