Update - VS2010 Beta 2 – Validation ($SCHEMA$): Element is not supported

Note: This is an update to an earlier post based on feedback that I have received from various commenter's.

If you have adopted beta 2 of Visual Studio 2010 then you might have spotted a large amount of green squigglies underneath the tags in your markup. When you have over them you see a message like this:


Validation ($SCHEMA$): Element 'div' is not supported

This appears to be a bug in the system. When this is occurring your autocomplete will not have any html element – only asp.net controls and snippets – which makes it pretty hard to do your work.

To fix this error without resetting all of your Visual Studio configuration settings back to factory defaults follow these steps:

  1. Click Tools | Options…
  2. If you have "Show all settings" unticked then you can click the Validation node.

    Otherwise you will have to click Text Editor | HTML | Validation.
  3. Make a selection in the Target: drop down (I picked XHTML 1.0 Transitional).
  4. Click OK to save your changes.


kick it Shout it vote it on WebDevVote.com


Anonymous said...

great post thank a lot man!

it helped! ;)

SteveG said...

Excellent!!!! Helped a lot!!!

MikeS said...

You are brilliant...how many years would I have taken finding this little nugget on my own...many thanks!!

Anonymous said...

Thanks for this great post but I personally don't want to use VS2010 until sufficient amount of developers start using it.

Anonymous said...

Thanks a lot. Very useful.


Unknown said...

wow thanks man

Anonymous said...

THANK you! :-)

Mark Finn said...

Doesn't work. My Target was already set to something, yet I continue to get these warnings from VS2010 in my XML file. Very annoying.