Namespace missing? + Running from shared drives...

I am trying to create an application that will send emails in response to given events... however, all of the code examples I've found reference system.net.mail

When I try to add the reference (Project, Add Reference...) there is no sign of system.net or system.net.mail

Can anyone tell me why this might be missing, or how to get it to appear

I am creating a console program if that is any help.

 

Also, when I try to run my built applications from a shared network drive, they fail to load. I gather this is a 'trust' feature of .net and that this can be fixed using the .net wizards option in Administrative tools. However, when I get an error saying "Unable to load assembly: <drive path and filename>". What might be causing this

Zustiur.



Answer this question

Namespace missing? + Running from shared drives...

  • ET3D

    That is excellent thankyou.
    Now if only I could figure out what's going on with the assembly trust issue.

    Zustiur.

  • Charles Lewis

    The System.Net.Mail namespace is contained in the System.dll assembly, so there is no need to add a reference.

  • Namespace missing? + Running from shared drives...