Visual Studio 2010 suddenly stopped recognizing asp tags in asp.net webpages. I don’t know the exact reason behind this behavior but I think it could be because of IE update (from 9 to 10), installing VS 2012 parallelly on same machine, or corrupted VS data files.
My development machine’s environment was
- Win7 Professional
- VS 2010 Professional
- VS 2010 Professional SP1
- VS 2012 Ultimate
- SQL Server 2008 Express Management Tools
I tried below mentioned workaround to fix the issue but no effect
- Uninstalling the VS 2012 Ultimate
- Revert back IE from 10 to 9
- Repairing VS 2010 Professional SP1
Finally, deleting the C:\Users\UserName\AppData\Roaming\Microsoft\VisualStudio\10.0 folder resolved the issue.
Note: Replace the UserName with your logged-in username in above string.