解决“Validation(): 元素‘xxxx’不受支持";Visual Studio 2005/2008 中的警告 [英] Resolving "Validation (): Element ‘xxxx’ is not supported" warning in Visual Studio 2005/2008

查看:13
本文介绍了解决“Validation(): 元素‘xxxx’不受支持";Visual Studio 2005/2008 中的警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在过去的几天里,我开始在 Visual Studio 2008 ASP.NET WebForms 项目中收到以下验证警告(设计时出现绿色波浪线):

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:

Validation():不支持元素‘xxxx’.

Validation (): Element ‘xxxx’ is not supported.

其中 'xxxx' 是标准的 ASP.NET 服务器控件(asp:panel、asp:container、asp:textbox)

Where 'xxxx' was a standard ASP.NET server control (asp:panel, asp:container, asp:textbox)

应用程序仍然可以编译和运行,但警告很烦人.

The application would still compile and run but the warnings were an annoyance.

查看我找到的解决方案的答案.

See my answer for the resolution I found.

推荐答案

从C:Documents and Settings[Username]Application DataMicrosoftVisualStudio9.0ReflectedSchemas"文件夹(或...VisualStudio8.0..."(如果在 Windows XP 中运行 Visual Studio 2005).在 Windows 7 中,它位于C:Users{User Profile}AppDataRoamingMicrosoft...etc"下.还请记住VisualStudio"部分路径会因安装的版本而异.

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

我关闭了 Visual Studio(对于会影响 IDE 的更改总是一个好主意),删除文件然后重新打开项目.警告消失了.

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

我在以下位置找到了对此解决方案的引用:http://forums.asp.net/t/1205528.aspxhttp://blogs.msdn.com/mikhailarkhipov/archive/2005/04/21/410557.aspx

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

通过 Google 快速搜索找到了解决方案.仅供参考,我在 Google 中使用的搜索词是不支持元素".

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 flaky domain profile things happening in the network environment.

这篇关于解决“Validation(): 元素‘xxxx’不受支持";Visual Studio 2005/2008 中的警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆