How do I get intellisense for WCF Ajax Services?

醉酒当歌 提交于 2019-12-03 17:33:31

Did /// <reference path="../Services/DocLookups.svc" /> not work?

Thanks to Scott for pointing out that I need to add the

///<reference path... 

line. I don't know where it's documented but I somehow missed that this was required for the WCF generated client-side proxies -- although it makes sense now given the same idiom is used to get the Intellisense for JQuery.

For the record, the line I ended up having to use was slightly different than what Scott suggested given my projects structure. I tried:

/// <reference path="../Documents/Services/DocLookups.svc" /> 

I then saved the file and from the VS Edit menu chose Intellisense... Update JScript Intellisense...

Unfortunately, this did not work and I got the following error when updating the Intellisense:

Error updating JScript IntelliSense: 
C:\TFSSource\LitigationPortal\Version 1.0\LitigationPortal\Documents\Services\DocLookups.svc:
'Type' is undefined @ 0:0

So I've made some progress but I'm not quite there yet.

I came across this same problem and found that there's a hotfix for Visual Studio 2008 available that solved my issue:

http://support.microsoft.com/kb/958502

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!