Recently, while using the beta 2 version of Visual Studio 2008, IntelliSense stopped working when editing .aspx pages and master pages. Well, it was more than just IntelliSense not working. I was getting horrible validation errors, such as 'asp' is an unrecocognized tag prefix or device filter. Considering 'asp' is one of those tag prefixes that should always be defined (thank you, machine.config), I knew something was horribly wrong. Sources on the web had me try all sorts of things:
-
Make sure the MasterPage is open,
-
Close VS and delete all files in C:\Documents and Settings\{username}\Application Data\Microsoft\VisualStudio\9.0\ReflectedSchemas, and
-
Ensure the file is rooted in an <html> or <body> tag.
No, no, no. None of that worked.
So then I tried closing the solution, deleting its .suo file (just a work file that can be regenerated), and deleting all files in the obj and bin directories. And then, like magic, IntelliSense and validation started working again!