Reputation: 23901
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.
This code shows namespace cannot be found
Imports System.Web.HTTPUtility
Am I missing something?
Upvotes: 2
Views: 2634
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