Using System.Web.Mail; error

  • Thread starter Thread starter JPS
  • Start date Start date
J

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]"
 
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
 
JPS said:
"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
 
Hans said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top