[Mono-list] System.Web.Mail not found!

Jonathan Stowe jns@gellyfish.com
Mon, 19 Jul 2004 17:12:48 +0100


On Mon, 2004-07-19 at 08:03, Israel Fdez Cabrera wrote:
> Hi all, this is my first message to the list, and I'm not sure if this is the 
> right list for this question but, here it is any way and U tell me if I'm in 
> the wrong place :)
> 
> I just download and installed Mono 1.0 in my SuSE 9.1 Box. I'm writing a test 
> application with Monodevelop, the code for this application was copied from a 
> monodoc help page and is the following:
> 
> --------------------------------------------------
> // project created on 19/07/2004 at 11:03
> using System;
> using System.Web.Mail;
> 
> class SSmtp
> {
> 	public static void Main(string[] args)
> 	{
> 		System.Console.Write("Prueba");
> 		/*MailMessage message = new MailMessage();
>      	message.From = "israel@segurmatica.com";
>      	message.To = "israel@segurmatica.com";
>      	message.Subject = "Hello, E-Mail world!";
>      	message.Body = "This is a test mail.";
> 
>      	SmtpMail.SmtpServer = "10.10.1.2";
>      	SmtpMail.Send (message);*/
> 	}
> }
> ----------------------------------------------------------
> 
> when compile, I get the following error:
> 
> line 3: The Namespace 'System.Web.Mail' can not be found (missing assembly 
> reference?) (CS0246)
> 

YOu need to add the reference to System.Web.dll - in MonoDevelop you
achieve this by right clicking on references in the left hand "SOlution
View" and selecting "Edit References" in the menu, then tick the
System.Web checkbox.

> I visit the go-mono web site and consulted the class libraries and 
> System.Web.Mail is implemented in a 98%.
> 
> I'll appreciate any help, link or reference.
> Best reg@rds
> Israel