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
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
相关文章推荐
- Visual Studio无法识别ASP.NET的“asp”标签前缀
- Visual Studio 2008 无法访问 Team Foundation Server 2010 的问题
- Visual Studio 2008中ASP.NET AJAX的新应用程序服务:Role Application Service
- 通过 ASP.NET 4.0、Visual Studio 2010 和 IIS7 实现的搜索引擎优化
- ASP.Net项目的所有的变量突然无法赋值的问题解决办法
- [Visual Studio 2010] NET 4.0 WinForm无法引用System.Web.dll的解决方法
- Visual Studio 2008 SP1: EntityDataSource for ASP.Net (转载)
- win2003配置IIS ,发布asp.net 时出现错误 “分析器错误信息: 无法识别的属性“type”。” 的解决方法
- ASP.NET development sever 在Windows server 2008/Vista显示页面无法找到
- Visual Studio 2008 – ASP.NET “System.Runtime.InteropServices.COMException”
- ASP.NET + AJAX ——Visual Studio 2008 的戏法
- 新书推荐:Practical Code Generation in .NET: Covering Visual Studio 2005, 2008, and 2010
- 如何配置Visual Studio 2010中的ASP.NET MVC的单元测试的代码覆盖率
- 将 ASP.NET 1.1 应用程序迁移到 Visual Studio 2010
- 《ASP.NET MVC Music Store Tutorial》在Visual Studio 2008简体中文环境下的代码修订
- 无法识别的属性“type”+IIS没有Asp.net配置选项的解决方法
- 为什么我的javascript脚本识别不了asp.net 控件,只能识别html标签.....??
- Asp.Net MVC App_Code无法识别
- (转)在 Visual Studio 2010 中创建 ASP.Net Web Service
- (转)在 Visual Studio 2010 中创建 ASP.Net Web Service