Patrick’s Bytes

Techie for the past 30 years…

Error updating JScript IntelliSense: Object doesn’t support this property or method @ 2139:1

Today I am trying out JQuery on Visual Studio 2008 for the first time. I go to the website at www.jquery.com and downloaded the library as well as the document for Visual Studio.

So I imported the JQuery library into my VS project

image

But when I want to try to the intellisense, I notice it is not working!! It should be able to recognize the famous $!!

image

Then I realize at the bottom of the VS IDE, there is an error message –

Warning    1    Error updating JScript IntelliSense: D:\workspace\Projects\JQuerySample\JQuerySample\scripts\jquery-1.3.2.js: Object doesn’t support this property or method @ 2139:1    D:\workspace\Projects\JQuerySample\JQuerySample\Default.aspx    1    1    JQuerySample

image

But this is not a bug inside the JQuery library itself. So I went back to scottgu’s blog post about on JQuery I notice something very difference with his library (besides the fact that he is using version 1.2.6).

I notice mine has got an extra number 2 at the end of vsdoc there. So I go back to the Google code side where I downloaded the file and I found out en they release a new vsdoc file to replace the exisiting deplecated one, they ‘tangan gatal’ change the name to jquery-1.3.2-vsdoc2.js. VS Interllisense only programmed to regconized [Javascript file name]-vsdoc.js without the 2 at the back there.

image

That vsdoc2 is the cause of the problem here! Just rename it to jquery-1.3.2-vsdoc.js and you got JQuery Intellisense working!

image

14 Responses to “Error updating JScript IntelliSense: Object doesn’t support this property or method @ 2139:1”

  1. Thanks! I had this same problem, and your post did the trick! =-)

    Comment by Gabe — June 15, 2009 @ 7:00 am

  2. You are so attentive to recognize this “bug”.
    Thanks a lot for saving my own time for eliminating this problem.

    Comment by Vadzim — July 21, 2009 @ 9:38 pm

  3. Thanks, Sir
    Your trick works well……Thanks

    Comment by Kishore — August 4, 2009 @ 4:16 pm

  4. Hi Thaxn for the solution. It works fine. Thank u very much.

    Comment by Nilesh — August 6, 2009 @ 3:01 pm

  5. Hi Thanx for the solution. It works fine. Thank u very much.

    Comment by Nilesh — August 6, 2009 @ 3:01 pm

  6. it doesn’t work after I rename files
    jquery-1.3.2-vsdoc.js
    jquery-1.3.2.js

    Error Message:
    Error updating JScript IntelliSense: E:\Lesson2\Lab1\CSharp\WorkingWithSiteNavigation\Scripts\jquery-1.3.2.js: Object doesn’t support this property or method @ 2139:1

    Comment by CamDiep — August 14, 2009 @ 5:39 pm

  7. Thank you very much for sharing this information!

    Comment by Gregg — September 13, 2009 @ 1:11 pm

  8. Thank you! Suggested renaming of the file solved the problem.

    Comment by Ross — October 16, 2009 @ 2:16 am

  9. Thanks! problem solved.

    Comment by Jorge — October 22, 2009 @ 10:00 am

  10. Thank you very much, it was really helpful!!!!

    Comment by Ricardo Luzardo — October 24, 2009 @ 6:04 am

  11. Thanks a lot for saving our time!
    ==For those who couldn’t make it work after the rename: make sure you’ve read ScottGu’s blog and applied the patch for VS90sp1

    Comment by Jose Marcenaro — November 19, 2009 @ 11:31 pm

  12. Thanks! I had this same error and the “2″ suffix removal worked perfectly. You da man!

    Comment by Jeff — December 7, 2009 @ 12:22 pm

  13. I get the same error, but removing the 2 doesn’t fix it. I get it with “jquery-1.3.2.min.js” or “jquery-1.4.1.min.js”. Very frustrating.

    Comment by Chip — June 11, 2010 @ 4:30 am

  14. Sometimes that happens because another problem the version of jquery it is not compatible with visual studio 2008 or maybe a bug or error, I found a solution for visual studio 2008 with version 1.4.1 using de development file (uncompressed).

    Example:

    -Add New Folder in your solution(you can named “scripts”)
    -Download jquery 1.4.1 version
    ( 3 files: minified,uncompressed and visual studio )
    minified = http://code.jquery.com/jquery-1.4.1.min.js
    uncompressed = http://code.jquery.com/jquery-1.4.1.js
    visual studio = http://code.jquery.com/jquery-1.4.1-vsdoc.js

    NOW !!!!

    Add the 3 files in “scripts” folder.
    Select uncompressed and down in head tag section.
    Example:

    AND ENJOY JQUERY AND INTELLISENSE ;) !!!

    PLEASE TEST THE OTHER NEW VERSIONS AND HELP US TO UNDERSTAND THE PROBLEMS WITH NEW VERSIONS.

    Comment by Hector Danilo — September 9, 2011 @ 3:54 pm

RSS feed for comments on this post. TrackBack URL

Leave a Response