whytheq
whytheq

Reputation: 35605

How do I configure to use System.Web.UI

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 ?

Upvotes: 2

Views: 17208

Answers (1)

Abhijeet
Abhijeet

Reputation: 13906

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

Upvotes: 5

Related Questions