Workaround for Beta 2 JavaScript IntelliSense and Colorization Issue

Workaround for Beta 2 JavaScript IntelliSense and Colorization Issue

  • Comments 30

We have discovered that in a very limited number of setup scenarios of Visual Studio 2008 Beta 2, Jscript IntelliSense and Colorization may not work property after installing the product. You will get no IntelliSense in JavaScript code, and all JavaScript code will appear black (i.e., colorization of keywords will be missing). The image below shows how the code would appear if this issue occurs:

 

The same issue will affect JavaScript code in your HTML and ASPX pages.

The issue is caused by the Jscript engine not being registered properly during the installation of Visual Studio. There is an easy workaround for this installation issue that will restore full functionality of Jscript IntelliSense.

To fix the problem, you will need to modify two registry values. Please be extremely careful when working with your system registry. If you are not familiar with Windows Registry and regedit tool, please ask your computer administrator to fix the issue for you.

The registry values you need to modify are

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\CLSID\{014E9A41-54E5-44ED-B15E-EFFA8758BFFC}]

"CodeBase"=file:///C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\Microsoft.JScript.AuthoringServices.dll

and

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\CLSID\{014E9A41-54E5-44ED-B15E-EFFA8758BFFC}\InprocServer32\9.0.0.0]

"CodeBase"=file:///C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\Microsoft.JScript.AuthoringServices.dll

Instead of the values you see above, you very likely have values “file:///”  for both of the above registry entries if you are experiencing this issue. You need to replace those values with full path to Microsoft.JScript.AuthoringServices.dll library that is installed in the Common7\IDE subdirectory of your Visual Studio installation. In the examples above, Visual Studio was installed to “C:\Program Files\Microsoft Visual Studio 9.0”, so the correct values for the registry entries were “file:///C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\Microsoft.JScript.AuthoringServices.dll”

The following two images show the incorrect registry content. Note the circled values and registry key names:

and

 

The corrected values should look like the following:

 

and

 

After making these changes, full functionality of the Jscript editing in Visual Studio should be restored. Please let us know if you experience any further problems!

- Alex Gavrilov
Software Development Engineer
Web Development Tools

This posting is provided "AS IS" with no warranties, and confers no rights.

Leave a Comment
  • Please add 3 and 6 and type the answer here:
  • Post
  • 【原文地址】 Fixes for Common VS 2008 and .NET 3.5 Beta2 Issues 【原文发表日期】 Saturday, August 04, 2007 12:10 PM

  • We did discover another issue when the entire Microsoft.JScript.AuthoringServices.dll file is missing. We see this happen if Silverlight Beta 1 is uninstalled after Visual Studio 2008 Beta 2 is installed. The easiest way to repaire the problem is to re-run Visual Studio 2008 setup and choose the "Repair" option. That should place the file back into its intended location.

  • Thanks Alan, it was actually an error in an Ext file.

    But alas, no intellisense for Ext, VS can't handle the way Ext is programmed...

  • Ok, in no particular order, here are 5 features in VS 2008 which are going to save me some time: Extender

  • Ok, in no particular order, here are 5 features in VS 2008 which are going to save me some time: Extender

  • It has been a little over a week since we released Beta 2 of VS 2008 and .NET 3.5 . So far the feedback

  • 1.我们用的是VisualStudioTeamSystem2008Beta2TeamSuite。

    试过了ORCASBeta1,当然期待Beta2的出来。

  • No Javascript intellisense or colour in VS 2008 beta2

  • This time it's javascript's intellisense. It was working fine, untill I installed the TFS Team Explorer...

  • This time it's javascript's intellisense. It was working fine, untill I installed the TFS Team Explorer...

  • I was experiencing the issues described here where I was getting no colourisation of JavaScript and no

  • We have come across a couple of installation issues in VS 2008 Beta 2 which broke the new Javascript

  • Thanks a million for this, worked a charm

  • Stötte på patrull när jag installerade Team Explorer till Visual Studio från en TFS 2008 Beta II-image:

  • Stötte på patrull när jag installerade Team Explorer till Visual Studio från en TFS 2008 Beta II-image

Page 2 of 2 (30 items) 12