Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Access SharePoint Site in Remote Machine

$
0
0

Hi,

I need to access a remote server inorder to get UserProfile information from the server which i am in. Currently im trying to do this a console application. I get "Web application at <URL> could not be found" error.

when i try to do this. How can i access the remote server.

The code i use is as below which is run under elevated priviledges:

using (SPSite destinationSiteCollection = newSPSite(destination))

{

using (SPWeb destinationSite = destinationSiteCollection.OpenWeb())

{

SPServiceContext destinationContext = SPServiceContext.GetContext(destinationSiteCollection);

UserProfileManager destinationManager = newUserProfileManager(destinationContext);

AudienceManager audienceManager =newAudienceManager(destinationContext);...


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>