ASP.NET控件无法识别

编程入门 行业动态 更新时间:2024-10-25 21:18:44
本文介绍了ASP.NET控件无法识别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我刚安装了Visual Studio 2010的发布版本,它看起来像有一些错误的标准ASP.NET服务器控件。

I just installed the release version of Visual Studio 2010, and it looks like there's something wrong with the standard ASP.NET server controls.

当我创建了一个基本的服务器控件,如TextBox,编辑强调它的绿色,说(我也得不到智能感知ASP.NET控件):

When I create a basic server control, such as a TextBox, the editor underlines it in green and says (I also get no intellisense for ASP.NET controls):

元素文本框不是一个已知的元素。如果有一个汇编结果,可能发生这在该网站,或Web.config文件错误丢失了。的

Element 'TextBox' is not a known element. This can occur if there is a compilation error in the Web site, or the Web.config file is missing.

该网站建立的罚款,并在Web.config文件不丢失:

The web site builds fine, and the Web.config file is not missing:

<?xml version="1.0"?> <configuration> <system.web> <compilation debug="false" targetFramework="4.0" /> </system.web> </configuration>

控件运行在code-背后蛮好的,它们的功能正常,当我运行的站点。

The controls work just fine in the code-behind, and they function correctly when I run the site.

有一些配置问题在这里?

Is there some configuration problem here?

推荐答案

这个人谁是测试仪上Visual Web开发组提供此解决方案,这显然奏效:

This person who's a tester on the Visual Web Developer Team offered this workaround, which apparently worked:

关闭VS,删除架构缓存,并重新打开VS 。下可以找到类似的模式:

Close VS, delete schema cache, and re-open VS. You can find the schemas under something like:

C:\Users\Pavel\AppData\Roaming\Microsoft\VisualStudio\10.0\ReflectedSchemas

可以安全地删除此文件夹中的所有文件。

It is safe to delete all files in this folder.

更多推荐

ASP.NET控件无法识别

本文发布于:2023-11-17 03:30:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1608660.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   无法识别   ASP   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!