I just installed a version of Visual Studio 2010, and it looks like something is 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 do not get intellisense for ASP.NET controls):
The 'TextBox' element is not a known element. This can happen if there is a compilation.
An error has occurred on the website or the Web.config file is missing.
The website is building fine and the Web.config file is missing:
<?xml version="1.0"?> <configuration> <system.web> <compilation debug="false" targetFramework="4.0" /> </system.web> </configuration>
The controls work fine in the code, and they work correctly when I launch the site.
Is there a configuration problem?
source share