bernie2436
bernie2436

Reputation: 23901

why can't I add a reference to system.web

I am trying to add a reference to System.Web to my VB.net 4.0 Console application Project so I can use the HTML encode function. I don't see System.Web in the add reference box.

enter image description here

This code shows namespace cannot be found

Imports System.Web.HTTPUtility

Am I missing something?

Upvotes: 2

Views: 2634

Answers (1)

Daniel Mann
Daniel Mann

Reputation: 58990

You're using the .NET 4 Client Profile. Change it to the full framework under the Project settings.

For C#, look under the "Application" tab for the "Target Framework" option.

For VB .NET, look under the "Compile" tab for the "Advanced Compile Options" button. Click that, and the last option will be for the target framework.

Upvotes: 5

Related Questions