Unrecognized tag prefix or device filter 'asp' error

Sometimes we are getting the Unrecognized tag prefix or device filter 'asp'. warning message and intellisense will also not work for asp.net controls. There could be two reasons for this kind of behavior.

  1. Because of a wrong Page directive. If that’s the case, you can check the Page directive at the top of the page and correct it.
  2. Failure of generating correct Reflected Schemas. If that’s the case, first thing you can try is restart the PC and open the Visual Studio so it will regenerate the schemas. Or delete the schemas manually by going to the below path.

C:\Documents and Settings\[Username]\Application Data\Microsoft\VisualStudio\10.0\ReflectedSchemas

No comments: