我刚安装了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控件无法识别
发布评论