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

今天遇到很奇怪的现象,我的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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值