Resolving “Validation (): Element ‘xxxx’ is not supported” warning in Visual Studio 2005/2008

后端 未结 2 1623
春和景丽
春和景丽 2020-11-30 03:25

Over the last couple of days I started getting the following validation warning (green squiggly line at design time) in a Visual Studio 2008 ASP.NET WebForms project:

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 03:43

    Delete the files from “C:\Documents and Settings[Username]\Application Data\Microsoft\VisualStudio\9.0\ReflectedSchemas” folder (or “…\VisualStudio\8.0\…” if running Visual Studio 2005) in Windows XP. In Windows 7 it is under "C:\Users{User Profile}\AppData\Roaming\Microsoft...etc". Remember also the "VisualStudio" part of the path will be different depending on the version installed.

    I closed Visual Studio (always a good ideas for changes that will affect the IDE), deleted the files then re-opened the project. The warnings were gone.

    I found references to this solution at: http://forums.asp.net/t/1205528.aspx http://blogs.msdn.com/mikhailarkhipov/archive/2005/04/21/410557.aspx

    A quick Google search found the solution. FYI, the search term I used in Google was “element is not supported”.

    I don't know why this happens but I do know there are some flakey domain profile things happening in the network environmnet.

提交回复
热议问题