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);...