Cannot resolve symbol 'UserProfileWebService'

99封情书 提交于 2019-12-24 07:07:21

问题


I found this article on msdn: http://msdn.microsoft.com/en-us/library/ms550407.aspx, and I would like to use the code sample provided, but I can't seem to figure out how to resolve UserProfileWebService.

Does anybody know what reference do I need to add or is this some sort of SDK missing?

Also, is there any alternative to http://www.findjar.com when it comes to C#?

Any info is appreciated, thank you!

NOTE: I am a little bit of a sharepoint noob, so I might be missing some important data blocks in my head :( Also, I should point out that we are using Sharepoint 2010, VS2010, .net4.0 and Client Object Model to traverse it remotely.


回答1:


The User Profile Service Web service namespace is an arbitrary name for a reference to the UserProfileService.asmx Web service in Microsoft Office SharePoint Server 2007. It is in the MOSSSOAP (in mosssoap.dll) assembly. The UserProfileWebService class resides in the websvcUserProfileService namespace.

You need to add a reference to the Microsoft.SharePoint.Client assembly and Microsoft.SharePoint.Client.Runtime assembly.



来源:https://stackoverflow.com/questions/7113936/cannot-resolve-symbol-userprofilewebservice

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