471,321 Members | 1,900 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,321 software developers and data experts.

Using System.Web.Mail; error

JPS
When I add this to my references at the top of my form I get the error
message
"The type of namespace "mail" does not exist in the class or namespace
"System.Web [ar you missing an assembly or reference]"

Jan 12 '06 #1
4 1836
> When I add this to my references at the top of my form I get the error
message
"The type of namespace "mail" does not exist in the class or namespace
"System.Web [ar you missing an assembly or reference]"


Are you using .Net 1.1 or 2.0 (Mail is only available in 2.0)?

The errormessage above specifies "mail" in lowercase. Is that a typo in
the post or did you really use lowercase (it should be "Mail")?

At the top of the form you can only write "using clauses", not
"references". The real references (what assemblies can be used) should
be specified at project-level. Did you add a reference to System.Web (I
think) there?

Hans Kesting
Jan 12 '06 #2
"JPS" <jp*****@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
"The type of namespace "mail" does not exist in the class or namespace
"System.Web [ar you missing an assembly or reference]"


The obvious question is did you add System.Web to your project references?

-- Alan
Jan 12 '06 #3
Hans Kesting wrote:
When I add this to my references at the top of my form I get the error
message
"The type of namespace "mail" does not exist in the class or namespace
"System.Web [ar you missing an assembly or reference]"


Are you using .Net 1.1 or 2.0 (Mail is only available in 2.0)?


The System.Web.Mail namespace is definitely available in .NET 1.1. It
doesn't have all the same features, but that's a different matter.

Jon

Jan 12 '06 #4
The using statement should be:

using System.Web.Mail;

--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"JPS" <jp*****@yahoo.com> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...
When I add this to my references at the top of my form I get the error
message
"The type of namespace "mail" does not exist in the class or namespace
"System.Web [ar you missing an assembly or reference]"

Jan 13 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by James Hong | last post: by
1 post views Thread by Trond A. S. Andersen | last post: by
9 posts views Thread by Bob Jones | last post: by
5 posts views Thread by ElanKathir | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.