By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,565 Members | 1,763 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,565 IT Pros & Developers. It's quick & easy.

System.Web.Mail

P: n/a
Hi,

We have the latest version of Visual Studio installed on two machines.

Both give an error when trying to use System.Web.Mail
"The type or namespace name 'Mail' does not exist in the class or
namespace 'System.Web' (are you missing an assembly reference?)"

According to the microsoft examples & the help this should be there.

Does anyone know what is wrong?

Regards,
Chris
Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Have you added the System.Web.dll assembly to your Project References?

Cheers,
Wim Hollebrandse
http://www.wimdows.net
http://www.wimdows.com

---
Posted using Wimdows.net Newsgroups - http://www.wimdows.net/newsgroups/
Nov 15 '05 #2

P: n/a
Chris <Ch***@freeserve.co.uk> wrote:
We have the latest version of Visual Studio installed on two machines.

Both give an error when trying to use System.Web.Mail
"The type or namespace name 'Mail' does not exist in the class or
namespace 'System.Web' (are you missing an assembly reference?)"

According to the microsoft examples & the help this should be there.

Does anyone know what is wrong?


As the error suggests, you've almost certainly not got an assembly
reference to the assembly containing the System.Web.Mail namespace;
it's in the System.Web.dll assembly.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #3

P: n/a

"Chris" <Ch***@freeserve.co.uk> wrote in message
news:3f*********************@news.dial.pipex.com.. .
Hi,

We have the latest version of Visual Studio installed on two machines.

Both give an error when trying to use System.Web.Mail
"The type or namespace name 'Mail' does not exist in the class or
namespace 'System.Web' (are you missing an assembly reference?)"

According to the microsoft examples & the help this should be there.

Does anyone know what is wrong?

Regards,
Chris

Thanks for the help guys.
It's my first day with c# and that had me stumped

Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.