1

I'm hoping to use something like the code put forward by MartinHN in the following post to create HTML formatted SMTP mail items: SO POST

Having problems creating a reference to the correct assemblies so that I can use the namespace "System.Web.UI.WebControls". the reference I'm trying to add is "System.Web" as suggested in HERE

In the .NET section of my vis stud project's references I do not have System.Web:

enter image description here

If I browse my C-Drive and add a System.Web.dll file then I get the following:

enter image description here

How do I configure this project so that I'm able to use MailDefinition ?

4

1 に答える 1

4

If you change target framework from .NET client profile to .NET Framework 4 you shall be able to add system.web reference even in console Application.

Attached here are the Sreenshots from VS2012

enter image description here

enter image description here

于 2012-09-23T21:41:15.993 に答える