سؤال

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.

هل كانت مفيدة؟

المحلول

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]

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top