1

I am trying to use:

using System.Web.UI.HtmlControls;

In windows forms, but it tells me a reference is missing. So I went in the add reference but System.Web isn't on the list. I even tried going to the physical location of System.Web.Dll but when I added it it told me that it can't find the assembly.

I have no problem importing the assembly in an ASP.NET application.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
TheGateKeeper
  • 4,420
  • 19
  • 66
  • 101

1 Answers1

5

Note if your project targets ".NET Framework 4.0 Client Profile" then this class will not work, you need to re-target your project to ".NET Framework 4.0" instead. [Credit to Matt Neerincx [MSFT] who posted this on msdn]

Guy Hollington
  • 566
  • 5
  • 4