Visual Web Developer 2010 Intellisense 损坏
我的问题
在 Microsoft Visual Web Developer Express 2010 中,我的智能感知今天突然停止对前端 HTML (.aspx) 文件工作,但对代码隐藏 (.cs) 文件仍然可以正常工作。
除此之外,当我将鼠标悬停在我的 aspx 页面中声明的任何 asp 控件上时,它会显示
validation(): Element 'control' is not supported.
validation(): Element 'label' is not supported.
etc...
(旁注:“control”和“label”在消息中为小写,而不是正确的大小写)
我的进度
我一直在寻找答案,
- 一些人建议删除某些文件,例如“*.ncb”, 但我找不到任何具有此扩展名的 MS 文件 任何地方(隐藏文件可见)。
- 我有一个“网站”,而不是“项目”,所以在我的网站内没有 *.sln"、*.proj、*.suo" 文件可删除。
- 一个建议是“清理”我的项目,但我找不到 任何地方的选项。
- 另一个人建议运行“MS Developer 命令提示符”并 使用某些参数执行名为“devenv”的实用程序。我不 有“MS Developer 命令提示符”,我想是因为我正在使用 快捷版。我在我的文件中找不到 devenv 实用程序 系统也是如此。
- 我已经检查了所有母版页,但没有注意到任何内容 诡异的。
- 我查看了“工具”>选项菜单,但没有在任何地方找到任何“智能感知”类型的东西。我的“显示所有设置”已打开。
- 我尝试将下拉列表中的文档类型从 XHTML 1.0 Transitional 更改为所有其他内容,只是为了看看,但没有成功。
我对 .Net 用户的恳求
我的网站构建得很好,没有错误,只是我的 aspx 页面上没有智能感知,这让我抓狂。
还有什么我可以尝试的吗?任何想法表示赞赏。谢谢!
My Problem
In Microsoft Visual Web Developer Express 2010, my intellisense suddenly stopped working today for my front end HTML (.aspx) files but is still working fine for code behind (.cs) files.
Along with this, when I hover over any asp control declared in my aspx pages, it says
validation(): Element 'control' is not supported.
validation(): Element 'label' is not supported.
etc...
(side note: 'control' and 'label' are lowercase in the message, instead of the proper case)
My Progress
I have been looking around for answers,
- a few people suggested deleting certain files, such as the "*.ncb",
but I have not been able to find any MS files with this extention
anywhere (hidden files are visible). - I have a "Web Site", not a "Project" so within my site there are no
*.sln", *.proj, *.suo" files to delete either. - One suggestion was to "Clean" my project, but I can't find that
option anywhere. - Another person suggestion running "MS Developer command prompt" and
executing a utility called "devenv" with certain arguments. I do not
have the "MS Developer command prompt", I assume because I am using
the Express Edition. I cannot find the devenv utility in my file
system as well. - I have checked all my master pages but haven't noticed anything
weird. - I looked in the Tools > Options menu but didn't find any "intellisense" type of thing anywhere. My "Show all settings" is turned on.
- I tried changing the doc type in the dropdown from XHTML 1.0 Transitional to all the other things just to see, with no luck.
My Plea to fellow .Net-ers
My website builds just fine with no errors, it's just having no intellisense on my aspx pages is driving me nuts.
Is there anything else I can try? Any thoughts appreciated. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,
DevEnv 是 Visual Studio 的程序名称 - 它将位于:
“C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe”(64 位)操作系统
或者
32 位操作系统上的“C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe”。
右键单击用于运行 VS 的图标,然后单击属性,它会告诉您该文件在目标框中的位置。
要清理项目,请右键单击解决方案资源管理器中的项目,然后单击清理。
Visual Studio命令提示符将位于开始菜单下:
微软 Visual Studio 2010>> Visual Studio 工具
可能有多个版本,具体取决于您是否在 64 位操作系统、Itanium 等上运行。您也可以从运行框或普通命令提示符运行 DevEnv。
32 位版本可以使用以下命令从运行框运行(如果是 64 位,请在“Program Files”后添加 " (x86"):
就个人而言,关闭 VS 并重新启动计算机后检查如果这只是一个进程崩溃导致它(即从新的操作系统和VS负载重新启动)-我会重置选项(请参阅此处/ResetSettings (devenv.exe))。
祝你好运,如果这有效或无效,请回复我,以便给该线程一个结论:D。
OK,
DevEnv is the program name for visual studio - it will be here:
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" on a 64 bit OS
or
"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe" on a 32 bit OS.
Right click on the icon you use to run VS and then click properties and it will tell you where this file is in the Target box.
To clean a project, right click the project in the solution explorer and then click Clean.
Visual studio command prompt will be in the start menu under:
Microsoft Visual Studio 2010 > Visual Studio Tools
There may be several version depending if you are running on a 64bit OS, Itanium, etc. You can also just run DevEnv from the Run box or ordinary command prompt.
The 32bit version can be run from the Run Box using the following (if on 64 bit, add " (x86" after "Program Files"):
Personally, after closing down VS and rebooting the machine to check if it was just a process crash causing it (i.e. restart from a fresh OS and VS load) - I would reset option (see here /ResetSettings (devenv.exe)).
Good luck, and please reply back mif this worked or did not so to give the thread a conclusion. :D