VS2005 Errors when creating .aspx pages that retrun XML or JSON
I kept getting this on a page that did nothing but reference a code behind.
Validation(): Element ‘html’ occurs too few times.
This is because VS2005 is performing HTML validation by default. Yuk. You can turn this off by going to:
- Tools –> Options –> Text Editor –> HTML –> Validation
- Uncheck the “Show Errors” checkbox
Voila!
Share this via del.icio.us, digg, email, etc.
Trackback for "VS2005 Errors when creating .aspx pages that retrun XML or JSON"
One Response to “VS2005 Errors when creating .aspx pages that retrun XML or JSON”
By Web Developer on Jul 13, 2007 | Reply
It would be nice to be able to disable this on a per-page basis, or even a per-project basis. Validation does come in useful if you are writing HTML.