Resolving "Validation (): Element ‘xxxx’ is not supported" warning in Visual Studio 2005/2008

Viewed 40610

Over the last couple of days I started getting the following validation warning (green squiggly line at design time) in a Visual Studio 2008 ASP.NET WebForms project:

Validation (): Element ‘xxxx’ is not supported.

Where 'xxxx' was a standard ASP.NET server control (asp:panel, asp:container, asp:textbox)

The application would still compile and run but the warnings were an annoyance.

See my answer for the resolution I found.

4 Answers

I had the doctype and html tags wrong. This did work:

<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

Run VS (2022) under Administrator rights resolved this problem in my opinion.

Related