您的位置:首页 > 编程语言 > ASP

Visual Studio 2008 2010 突然无法识别ASP.NET中的“asp”标签前缀

2010-11-13 15:25 543 查看
今天遇到很奇怪的现象,我的Visual Studio 2008突然无法识别ASP.NET中的“asp”标签前缀,开始以为是Visual Studio出问题了,重启系统后还是没有解决,然后在“添加和删除程序”中修复了一遍Visual Studio,问题还是没有解决。上Google一搜索,有结果,在一个MSDN的博客中看到:

I blogged earlier that in VS 2005 we switched from using static XML schemas to automatically generating them using reflection on Web controls. XML schemas are generated on demand as you open pages in your Web site. They contain information about ASP.NET controls, custom and user controls. You can find generated files cache in

C:/Documents and Settings/[Username]/Application Data/Microsoft/VisualStudio/8.0/ReflectedSchemas

So, the first thing you want to do if you see dreaded "'asp' is an unrecognized tag prefix or device filter" error is to close all VS instances and then delete the folder contents. Restart VS, open your Web site and we will generate schemas again.

  然后我就把C:/Documents and Settings/[Username]/Application Data/Microsoft/VisualStudio/9.0删掉(没事,VS会重建的),再启动VS打开项目,一切正常了。

  为什么会出现此情况呢?那是因为我重新换了一个Windows用户,然后把旧用户里的Application Data复制过来了,VS可能就不能识别ReflectedSchemas下面的内容,所以全部“asp”标签前缀都无法识别了。

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/sunshine_me/archive/2010/07/09/5722413.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐