• Visual Studio无法识别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”标签前缀都无法识别了。

  • 相关阅读:
    matlab软件-了解
    C# 自定义异常demo
    C#二进制对象copy
    asp.net 缓存依赖demo
    权限管理细粒度问题
    三层架构中的异常处理二
    如何解决复杂问题——结构化思维方式
    入职新公司如何熟悉项目
    专业工具使用与复杂大型项目设计管理
    十分钟学会 tmux
  • 原文地址:https://www.cnblogs.com/qiuyi21/p/1312172.html
Copyright © 2020-2023  润新知