简体   繁体   English

Visual Studio 2008-更新JScript IntelliSense时出错

[英]Visual Studio 2008 - Error updating JScript IntelliSense

Environment 环境

Windows 7 SP1 64bit Windows 7 SP1 64位

Visual Studio 2008 Version 9.0.30729.1 SP Visual Studio 2008版本9.0.30729.1 SP

Microsoft .NET Framework Version 3.5 SP1 Microsoft .NET Framework版本3.5 SP1

Web Site solution 网站解决方案


PROBLEM 问题

While working in my .aspx and .js files, I frequently (every couple of minutes) get the below popup message, which requires me to hit "No" and then resume working. 在处理.aspx和.js文件时,我经常(每两分钟)收到以下弹出消息,这要求我单击“否”,然后恢复工作。

At about the same frequency, when I do any of the below actions: 当我执行以下任一操作时,大约以相同的频率进行:

  • change views from the .aspx to a .js 将视图从.aspx更改为.js
  • change views from the .js to the .aspx.cs 将视图从.js更改为.aspx.cs
  • click the "Save All" icon 点击“全部保存”图标

it will give me the circular loading icon, and go to a "Not Responding" status for about 20 seconds. 它将显示循环加载图标,并进入“无响应”状态约20秒钟。 After that time, I can resume whatever I was doing. 在那之后,我可以继续做任何事情。

Full Page 完整页面

完整页面

Full Popup 全弹出

错误弹出

Visual Studio Just-In-Time Debugger Popup Window Visual Studio即时调试器弹出窗口

An unhandled exception (''f' is null or not an object') occurred in typelibbuilder.exe [8844]. typelibbuilder.exe [8844]中发生未处理的异常(“ f”为空或不是对象)。

Additionally, I do have the following warning message showing up in my Errors / Warnings toolbar. 此外,我的错误/警告工具栏中确实显示以下警告消息。

Error updating JScript IntelliSense: C:\\Applications\\Web Interfaces\\EcomIntranet\\Plugins\\jquery\\js\\jquery-1.9.1.js: Object doesn't support this property or method @ 1318:1 C:\\Applications\\Web Interfaces\\EcomIntranet\\Blacklist.aspx 1 1 C:...\\EcomIntranet\\ 更新JScript IntelliSense时出错:C:\\ Applications \\ Web Interfaces \\ EcomIntranet \\ Plugins \\ jquery \\ js \\ jquery-1.9.1.js:对象不支持此属性或方法@ 1318:1 C:\\ Applications \\ Web Interfaces \\ EcomIntranet \\ Blacklist.aspx 1 1 C:... \\ EcomIntranet \\


ATTEMPTED SOLUTIONS 尝试的解决方案

1 I have tried putting the following text in a notepad file, and saving as a .reg, according to this MSDN link here ... but it has not helped at all. 1根据这里的MSDN链接 ,我尝试将以下文本放入记事本文件中,并另存为.reg ...,但是它根本没有帮助。

Windows Registry Editor Version 5.00 Windows注册表编辑器版本5.00

[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\StrongName\\Verification\\TypeLibBuilder,b03f5f7f11d50a3a] [HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ StrongName \\ Verification \\ TypeLibBuilder,b03f5f7f11d50a3a]

2 I've also taken all the JS file references to URL's, and downloaded the source directly to the project, so that it gets everything locally. 2我还获取了所有JS文件对URL的引用,并将源直接下载到项目中,以便它可以在本地获取所有内容。

3 I've also gone into Tools -> Options -> Text Editor -> JScript, and unchecked "Auto list members" and "Parameter Information". 3我还进入了“工具”->“选项”->“文本编辑器”->“ JScript”,并取消选中“自动列表成员”和“参数信息”。 The error is still happening... however the [8844] error code number does vary. 该错误仍在发生...但是,[8844]错误代码号的确有所不同。

I finally ran across this page 我终于碰到了这个页面

http://appendto.com/community/jquery-vsdoc/ http://appendto.com/community/jquery-vsdoc/

which suggested to download the jquery -vsdoc file, and place it in the same directory as the referenced jquery file. 建议下载jquery -vsdoc文件,并将其放置在与引用的jquery文件相同的目录中。

I did not need to add a script reference to it on my page, it simply needed to be included in the folder structure... the error has gone away! 我不需要在页面上添加脚本引用,只需将其包含在文件夹结构中即可...错误消失了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM