ASP.NET Controls Not Recognized

Posted by Liam on Stack Overflow See other posts from Stack Overflow or by Liam
Published on 2010-06-12T16:07:42Z Indexed on 2010/06/12 16:13 UTC
Read the original article Hit count: 259

Filed under:
|

I just installed the release version of Visual Studio 2010, and it looks like there's something wrong with the standard ASP.NET server controls.

When I create a basic server control, such as a TextBox, the editor underlines it in green and says (I also get no intellisense for ASP.NET controls):

Element 'TextBox' is not a known element. This can occur if there is a compilation
error in the Web site, or the Web.config file is missing.

The web site builds fine, and the Web.config file is not missing:

<?xml version="1.0"?>
<configuration>
<system.web>
  <compilation debug="false" targetFramework="4.0" />
</system.web>
</configuration>

The controls work just fine in the code-behind, and they function correctly when I run the site.

Is there some configuration problem here?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about visual-studio